Skip to content

[Fix] Added config settings permissions to default groups #664 - #665

Merged
nemesifier merged 2 commits into
masterfrom
issues/664-config-permissions
Jun 23, 2022
Merged

[Fix] Added config settings permissions to default groups #664#665
nemesifier merged 2 commits into
masterfrom
issues/664-config-permissions

Conversation

@codesankalp

Copy link
Copy Markdown
Member

Fixes #664

)
if operation in operator_operations:
operator.permissions.add(permission.pk)
admin.permissions.add(permission.pk)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

what if the groups already have the permission?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I tested this case, it doesn't raise any exception if permission is already present.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ok 👍

@codesankalp
codesankalp force-pushed the issues/664-config-permissions branch from bdf7a7e to 7a9c5ef Compare June 21, 2022 18:48
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 98.548% when pulling 951cf7e on issues/664-config-permissions into 7dcc94c on master.

@nemesifier
nemesifier merged commit 2504eaa into master Jun 23, 2022
@nemesifier
nemesifier deleted the issues/664-config-permissions branch June 23, 2022 21:28
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.

[bug] Add permission for configuration management settings to Administrator and Operator groups

3 participants