Skip to content
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

Merged
merged 13 commits into from
May 1, 2024
Merged

Conversation

defstat
Copy link
Collaborator

@defstat defstat commented Apr 29, 2024

No description provided.

$this->addPolicy(new UserRolesRequiredPolicy($request), true);
$this->addPolicy(new ContextAccessPolicy($request, $roleAssignments));

if ($actionName === 'getHistory') {
Copy link
Member

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right. Removed.

@defstat defstat merged commit 8b40f9f into pkp:main May 1, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants