You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have defined multitenant plugin as follows: multiTenantPlugin({ collections: { products: {}, media: {}, orders: {} }, tenantsArrayField: { includeDefaultField: false, }, userHasAccessToAllTenants: (user) => isSuperAdmin(user), }),
I checked that isSuperAdmin(user) call returns true when logged in as a super admin. I would expect super admin to have full access, to all products for example. However, it is not the case. Commenting out products in collections array results in having access to all products. What am I missing?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have defined multitenant plugin as follows:
multiTenantPlugin({ collections: { products: {}, media: {}, orders: {} }, tenantsArrayField: { includeDefaultField: false, }, userHasAccessToAllTenants: (user) => isSuperAdmin(user), }),I checked that isSuperAdmin(user) call returns true when logged in as a super admin. I would expect super admin to have full access, to all products for example. However, it is not the case. Commenting out products in collections array results in having access to all products. What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions