-
Notifications
You must be signed in to change notification settings - Fork 0
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
CRDCDH-2098 PBAC - Data Submission Button Visibility #573
Conversation
…as well as updated permission conditions for data submissions
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.
Code changes LGTM. I annotated two super minor things (memo dependencies), and one question that doesn't necessarily require action.
I'm going to label this as Do Not Merge until we just get confirmation that there is a data_submission:validate
permission. I'm not sure if this story is outdated or not.
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.
LGTM.
@Alejandro-Vega I don't think the Would you prefer to merge this, and just make another PR to remove this permission if we need to, or wait for confirmation? If the former, feel free to go ahead and merge it. I'm fine either way |
We can hold off until we get confirmation unless this branch ever becomes a blocker then I'd say we go ahead and merge and fix later. As of now, I think it won't hurt to wait. |
PR has been updated to remove any mention of the "data_submission:validate" permission in ee86b10. |
Overview
Implemented PBAC to Data Submission related buttons.
Change Details (Specifics)
Updated Download API Token in the Navigation to only display if the user has "Create" permission
Updated “Create a Data Submission” button to only display if the user has "Create" permission
The following buttons below are only visible if they have the required permissions as well as some role specific requirements such as:
Only displayed the following buttons if user has “Create” permission or is collaborator as well as role requirements described above
Only displayed the "Validate" button if the user has "Validate" permission or is collaborator and submission has been Submitted, as well as role requirements described above
Only displayed the following buttons if the user has "Review" permission or is collaborator and submission has been Submitted, as well as role requirements described above
Only displayed the "Admin Submit" button if the user has "Admin Submit" permission and it is available, as well as role requirements described above
Only displayed the "Confirm" button if the user has "Confirm" permission, submission has been Released, as well as role requirements described above
Revised existing tests to match new PBAC
Uncomment role-specific tests from ticket
Related Ticket(s)
CRDCDH-2098 (Task)
CRDCDH-2023 (US)