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
Hi, this is kinda of a conceptual question:
Currently permissions can be delete (Via the relationship table in the Roles' edit page).
Should be allowed?
The point is that when checking if a user has a particular permission, an exception is thrown if that permission does not exist. So deleting permissions is not really recommended
In addition, when considering roles, maybe they should not be deletable if assigned to at least 1 role... ?
Thanks.
ps: Happy to provide PRs to tackle this if it makes sense.
The text was updated successfully, but these errors were encountered:
Does make sence, I did originally build this in as 2 of my projects using this had to tackle roles differently,
Happy for you to look further into it. -- that said - how I generally deal with it in my projects would be the same as I do anywhere else - making use of a Policy to return whether or not we are allowed.
Hi, this is kinda of a conceptual question:
Currently permissions can be delete (Via the relationship table in the Roles' edit page).
Should be allowed?
The point is that when checking if a user has a particular permission, an exception is thrown if that permission does not exist. So deleting permissions is not really recommended
In addition, when considering roles, maybe they should not be deletable if assigned to at least 1 role... ?
Thanks.
ps: Happy to provide PRs to tackle this if it makes sense.
The text was updated successfully, but these errors were encountered: