I would give the admin different names as a first step:
admin_global // however you name
admin_org_a
etc.
Allow for dual roles of course.
Otherwise you will have one admin of something doing something in something else.
Just suggestion.
I have run into an a technical challenge. I'm using the Laravel-permissions package by Spatie to manage permissions and roles but I now need to be able to assign roles for a given scope (per se). A user can join multiple organization and an admin of the organization should be able to assign roles to that user in the given organization (Admin, Moderator, etc.). But each time a user joins a new organization, the user should have a role assigned to them for that specific organization.
To complicate this even further, users can also join the difference groups an organization admin create. Users need to either be a regular member or designated as a moderator within that group. I'm guessing this is something I will need to do in my pivot table.
How can I accomplish this? I need sometime of permission scoping. An admin in the global scope will need to be able to do a lot more than the admin of an organization will be allowed to do.
If anyone can help me it would be much appreciated!
Please or to participate in this conversation.