hey, I started with the multi-tenant example to get started. The multi-tenant collection uses superAdminOrTenantAdminAccess access method but when logged in as a tenant, the tenant-admin can't create new pages in their own domain.
With the current implementation, the requesteDomain is accessed from req.body but that is not defined.
#Tenant Admins Can Not Create / Edit Pages
6 messages · Page 1 of 1 (latest)
Help is on the way! To mark it as solved, use the /solve command. In the meantime, here are some existing threads that may help you:
Documentation:
- The Admin Panel - Customizing Routes - Admin-level Routes
- Customizing Views
- Installation - Adding to an existing app - 5. Fire it up!
- The Admin Panel - Customizing Routes - Root-level Routes - Customizing Root-level Routes
- Authentication Operations - Forgot Password
Community-Help:
I submitted a github issue with the same bug https://github.com/payloadcms/payload/issues/13483
GitHub
Describe the Bug Reproducible code can be found here https://github.com/asieraduriz/payloadcms-multi-tenant The challenge I found so far is that when viewing the Pages collection, if my user role i...
Figured that the tenant should be accessed from cookie
The name is payload-tenant
Got to the same place. However, I would expect this to work from the plugin without having to access the cookies if needed
Also, how did you solve having multi-tenant globals?