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

Flag module permissions are not removed on uninstall #1

Open
jromine opened this issue Mar 17, 2015 · 0 comments
Open

Flag module permissions are not removed on uninstall #1

jromine opened this issue Mar 17, 2015 · 0 comments
Labels

Comments

@jromine
Copy link
Member

jromine commented Mar 17, 2015

Flag module creates permissions 'flag flagname' and 'unflag flagname' for each flag created. When flag module is uninstalled, these permissions are not removed from any roles they were added to.

The problem is user module tries to remove these permissions after flag module is uninstalled and the list of flags is no longer available. See issue backdrop/backdrop-issues#810

The implemented work-around is for flag_permission() to check whether flag module is installed before querying its database tables to obtain a list of per-flag permissions.

@herbdool herbdool added the bug label Sep 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants