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
Now I want to be able to change the permission for either of the roles at will.
Suppose I want to set the permission edit_profile to True for LevelOne role.
How do I achieve that ?
The text was updated successfully, but these errors were encountered:
Hi @vinyasmusic, despite allowing default permissions per role, permissions are actually managed in the user level. This means that assigning a role to a user will grant the initial set of default permissions but you are free to change the permissions while keeping the user role. Because of this we decided the library will not interfere with changes in the Role permissions. By doing this we avoid messing up someones system by accidentally granting a potentially sensitive permission. The way to do deal with it is write your own script updating the permissions. That way you can have full control of what is happening.
We should have this behaviour better documented. I'll keep this issue open until we do it.
I have created two roles like this
Now I want to be able to change the permission for either of the roles at will.
Suppose I want to set the permission
edit_profile
toTrue
forLevelOne
role.How do I achieve that ?
The text was updated successfully, but these errors were encountered: