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

bugfix: existing role permissions should not be removed during update #90

Merged
merged 1 commit into from
Aug 18, 2023

Conversation

khorshuheng
Copy link
Collaborator

Currently, existing permissions of a role is removed before the new ones are inserted. This behaviour is fine for project administrator and reader roles, but problematic for mlp administrator roles. As present, if someone update or create a new project, the mlp administrator role will gain the permissions of the new/updated project, but lost every other access.

After this fix, existing permissions will not be removed during an authorization update. The method has also been renamed for better clarity of the intention.

Copy link
Collaborator

@krithika369 krithika369 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for this fix, @khorshuheng !

@khorshuheng khorshuheng merged commit cae72b7 into main Aug 18, 2023
@khorshuheng khorshuheng deleted the fix-role-permission-update branch August 18, 2023 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants