Dynamic / Temp Role Assignment #2674
Unanswered
truehybridx
asked this question in
Q&A
Replies: 1 comment 1 reply
-
What are you doing in your Laravel policies? What you describe sounds like something I'd be inclined to either simply add into some checks in model policies, or add some highly customized bespoke global policies that can be called instead of just checking for a specific role. (Such a custom "policy" could be just defining a new ability on the Gate which checks several roles and a few other flags ... or it could also receive data from external sources and make determinations from that. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have use cases in applications where we can assign a role to a user permanently, but most of the time we need to be able to base their role off of calculations based on their data from external data. Is there a reasonable way we should handle this?
ie: if a user logs in and they are a supervisor (determined by other enterprise data sources queried in the moment), get get the Supervisor role and whatever permissions are assigned to that.
Beta Was this translation helpful? Give feedback.
All reactions