rbac icon indicating copy to clipboard operation
rbac copied to clipboard

Add console command to remove assignments with non-exists roles/permissions

Open vjik opened this issue 1 year ago • 3 comments

vjik avatar Sep 19 '24 11:09 vjik

Why would we have these? Shouldn't we remove such assignments when role/permission is removed?

samdark avatar Sep 20 '24 08:09 samdark

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.

vjik avatar Sep 21 '24 19:09 vjik

Should we change this behavior? Before removing a role delete all assignments?

samdark avatar Sep 22 '24 20:09 samdark