-
Notifications
You must be signed in to change notification settings - Fork 448
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
[PKP-LIB][main] #9453 Reviewer History #9920
Conversation
$this->addPolicy(new UserRolesRequiredPolicy($request), true); | ||
$this->addPolicy(new ContextAccessPolicy($request, $roleAssignments)); | ||
|
||
if ($actionName === 'getHistory') { |
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.
getHistory
is the only function offered by this controller, right? It might be better to just remove this test entirely and always add the policy. If a later function gets added to the handler, it'll probably need the same policy -- and as it stands, the policy wouldn't be applied.
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.
You are right. Removed.
…ure switch removal
No description provided.