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
Hello .
I want to design a system that in that a super admin can declare roles layers dynamically.
for example a super admin can add : company layer , then he will add department layer and then add role and permission layer.
each user can be member of one or more than one companies and multiple department.
now i want to see does a user has authorize from company by id 3 and department id 6 and role 2 and permission 9 ?
so the code should be like it : $permission = 'company.depatrment.writer.create.1';
how can i handle this scenario by this package?
thank you.
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
-
Hello .
I want to design a system that in that a super admin can declare roles layers dynamically.
for example a super admin can add : company layer , then he will add department layer and then add role and permission layer.
each user can be member of one or more than one companies and multiple department.
now i want to see does a user has authorize from company by id 3 and department id 6 and role 2 and permission 9 ?
so the code should be like it : $permission = 'company.depatrment.writer.create.1';
how can i handle this scenario by this package?
thank you.
Beta Was this translation helpful? Give feedback.
All reactions