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/pkp-lib#9127 Restrict submission file access for global roles when dual-assigned #9133

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Vitaliy-1
Copy link
Collaborator

No description provided.

@@ -59,13 +63,49 @@ public function effect()
{
// Check whether the user has one of the allowed roles
// assigned. If that's the case we'll permit access.
// Get user roles grouped by context.
$userRoles = $this->getAuthorizedContextObject(Application::ASSOC_TYPE_ACCESSIBLE_WORKFLOW_STAGES);
Copy link
Collaborator Author

@Vitaliy-1 Vitaliy-1 Jul 4, 2023

Choose a reason for hiding this comment

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

As far as I understand, we don't need workflow stages, which are accessible for the user here, as they also include stages accessible because of global roles, like admin or manager. Instead stage assignments should be used.

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.

1 participant