rbac
rbac copied to clipboard
Add console command to remove assignments with non-exists roles/permissions
Why would we have these? Shouldn't we remove such assignments when role/permission is removed?
Why would we have these? Shouldn't we remove such assignments when role/permission is removed?
It's actual for case when roles keep in PHP storage and assignments in DB storage. Example: remove roles in PHP code and deploy it; after deploy non-actual assignments will remain in DB.
Should we change this behavior? Before removing a role delete all assignments?