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
fix(permissions): Update default object access permissions (DEV-514) #2004
fix(permissions): Update default object access permissions (DEV-514) #2004
Conversation
Kudos, SonarCloud Quality Gate passed!
|
PermissionADM.modifyPermission(OntologyConstants.KnoraAdmin.ProjectAdmin), | ||
PermissionADM.viewPermission(OntologyConstants.KnoraAdmin.ProjectAdmin), | ||
PermissionADM.restrictedViewPermission(OntologyConstants.KnoraAdmin.ProjectAdmin) | ||
PermissionADM.modifyPermission(OntologyConstants.KnoraAdmin.ProjectMember) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't the most privileged permission contain all the others? This line then wouldn't be necessary for too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
they differ in the group
- `name` : indicates the type of the permission that can be one of the followings. | ||
- `RV`: restricted view permission (least privileged) | ||
- `V`: view permission | ||
- `M` modify permission | ||
- `D`: delete permission | ||
- `CR`: change rights permission (most privileged) | ||
- `permissionCode`: The code assigned to a permission indicating its hierarchical level. These codes are as below: | ||
- `1`: for restricted view permission (least privileged) | ||
- `2`: for view permission | ||
- `6`: for modify permission | ||
- `7`: for delete permission | ||
- `8`: for change rights permission (most privileged) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need both ways to describe permissions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no idea why both are used, I stumbled upon it as well but it is not the scope of this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
V1
and V2
. V1
use numbers and V2
uses letters.
resolves DEV-514