Replies: 3 comments 5 replies
-
There have already been several discussions about this, an answer has already been given, in short, it is not going to happen. |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
Beta Was this translation helpful? Give feedback.
1 reply
-
|
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
Uh oh!
There was an error while loading. Please reload this page.
-
I did see a similar request to this from a few years ago but I have not seen any change in the code base to consider it.
First request is to have negative permissions.
Example if you wish to limit a users ability to do something like make suggestions or whatnot. it'd be easier to have a "can_not_do" permission than to set a "can_do" permission that is default.
I feel this can be easily updated with a "is_negative" attribute in the permissions and or role table so that positive and negative roles can be distinguished
and then create a few methods to block instead of enable access if the permission is present.
I think this would just require a trait that adds a role or permission column to a M:M pivot table of the given models. Ie a friend table maybe have user_id 1 user_id 2, where a permissions column may indicate "restrict_messaging" or "allow_sharing"
or a group_user pivot could have the admin role, or "allow_posts" permissions.
Any traits could just provide the functionality to set these model to model permissions/ roles in a json column or similar.
otherwise an additional column would need to be added to the model_has_roles/ permissions tables to account for the second model.
Beta Was this translation helpful? Give feedback.
All reactions