joas8211 / payload-tenancy

Multi-tenancy plugin for Payload CMS
MIT License
122 stars 6 forks source link

Setup form shows tenant field #1

Closed joas8211 closed 1 year ago

joas8211 commented 1 year ago

Tenant field should be hidden from the setup form. There's no tenants yet at setup, so no value can be set. Clicking the field shows the loading animation indefinitely. Tenant is created after creating the first user.

This cannot be achieved by restricting access, because access rights are not taken into account in setup. There might not be a solution for this at current point in time without a fix / feature for Payload.

kuva

joas8211 commented 1 year ago

Discussion about solving this issue in Payload: https://github.com/payloadcms/payload/discussions/2164

joas8211 commented 1 year ago

Fixed with https://github.com/joas8211/payload-tenancy/commit/4da2d61c152a42f712bc8d14aa61c2b1c8b03022