-
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
Users assigned to submissions after changing their roles lose access to files to which they should have it #9127
Comments
User with manager role assigned as an assistant with stage restrictions, e.g., designer, will have an access to all workflow stages and submission files. I think |
PRs pkp-lib Requires porting to stable branches |
@asmecher, can you review this PR? edit |
This PR modifies What this PR doesn't change, is the access for dual assigned users with managerial roles to workflow stages. In the example above, journal editor assigned as a layout editor still has access to all of the stages. It doesn't affect also review files as they are controlled by |
Should be fixed by #9131 |
Describe the bug
Described in this comment
If user was assigned to a submission in one role and then the role has changed,
SubmissionFileAccessPolicy
won't grant access to the file even if new role should allow the access. E.g., user was assigned as a journal editor and then demoted to a section editor, or assigned as designer and promoted to the section editor.Such behaviour was introduced by this commit as part of this issue aimed to prevent double-assigned editors from accessing unauthorized files.
To Reproduce
Steps to reproduce the behavior:
See: #9104 (comment)
In this case this policy is failing:
pkp-lib/classes/security/authorization/SubmissionFileAccessPolicy.php
Line 243 in e93c832
What application are you using?
OJS, OMP or OPS version stable 3.3.0, 3.4.0, main branch
The text was updated successfully, but these errors were encountered: