Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vjik opened this issue Sep 19, 2024 · 3 comments
Open
Labels
status:ready for adoption Feel free to implement this issue. type:feature New feature

Comments

@vjik
Copy link
Member

vjik commented Sep 19, 2024

No description provided.

@samdark samdark added type:feature New feature status:ready for adoption Feel free to implement this issue. labels Sep 20, 2024
@samdark
Copy link
Member

samdark commented Sep 20, 2024

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

@vjik
Copy link
Member Author

vjik commented Sep 21, 2024

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.

@samdark
Copy link
Member

samdark commented Sep 22, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:ready for adoption Feel free to implement this issue. type:feature New feature
Projects
None yet
Development

No branches or pull requests

2 participants