Assign gamma permissions to user domain role #71
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is an alternative approach (see this comment) to how we assign "edit" permissions to a user on CCA.
Please comment on the preferred approach.
Glossary
domain user role
-> the role assigned to a user on a domain which governs the user's permissions on the domain.What's changed?
The previous PR does the following:
domain user role
and give that role all the view-only permissionsdomain user role
but rather give the standardGamma
role (we don't assign both thedomain user role
and theGamma
role since theGamma
role already has all the view permissions)domain user role
in the DB.This PR, however, does it this way:
domain user role
regardless of what their permission level is. This role will be updated with the necessary permissions as is defined on HQ (view/edit)Gamma
role's permissions and assign those permissions to the roleThe main difference between this PR and the previous one is that instead of assigning or unassigning the
Gamma
role /domain user role
we assign theGamma
role permissions (or view-only permissions, depending on HQ configuration) always only to the one role (domain user role
) which we use to manage the user's permissions.