-
Notifications
You must be signed in to change notification settings - Fork 188
Fixed Statistics Permissions #3852
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
Fixed Statistics Permissions #3852
Conversation
…s All Profiles Permission
| $accessAllProfiles = $user->hasPermission('access_all_profiles') && | ||
| $user->hasPermission('data_entry'); | ||
| return $user->hasCenterPermission('data_entry', $centerID) || | ||
| $accessAlProfiles; |
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.
typo: $accessAllProfiles
zaliqarosli
left a comment
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.
looks good!
miebeers
left a comment
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.
Tested, and it works well for me too!
This PR fixes the Statistics Site Permissions to allow access to Users with Access All Profiles Permission.
How to test:
Refer to Dashboard TestPlan item 11 for further clarification:
https://github.com/aces/Loris/blob/20.0-release/modules/dashboard/test/TestPlan.md
Redmine Ticket:
https://redmine.cbrain.mcgill.ca/issues/14946