Ignore tenant on certain resources
It it possible to ignore the tenant on certain resources?
4 Replies
I'm not sure. Just out of curiosity, do you have a single or multiple panels?
I'm thinking a simple solution could be to put the shared resources in a separate panel.
Same question. Looking at the code, my first impression is that it's currently not possible.
Sadly multiple panels isn't the best solution. Some resources belong to the same "panel domain" and must be readable by all users, while only "Super Admins" can write to it.
Other resources are read only for all and only writable by automated scripts, like the list of cities or the list of tenants/partners that should be readable for all users without filtering by tenancy.
While it don't looks correcly to me. I'm solving the problem overriding the method scopeEloquentQueryToTenant and returning the query without changes
Nice! I think there are other tenant-aware parts in the resource though, did you run into any other issues?
So far no issues