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

Error: Labclerks viewing verified worksheets #1479

Merged
merged 5 commits into from
Nov 27, 2019
Merged

Error: Labclerks viewing verified worksheets #1479

merged 5 commits into from
Nov 27, 2019

Conversation

xispa
Copy link
Member

@xispa xispa commented Nov 26, 2019

Description of the issue/feature this PR addresses

The permissions for manage_results view were wrong. EditWorksheet permission makes sense in views that are used for adding analyses, etc. (e.g. AddDuplicates, Add Control, etc.), but the permission for analyses listing (manage_results) in Worksheet should be govened by ViewResults only.

If the current status of the analysis does not allow its edition for the current user, this is handled automatically by folderitems, so there is no sense to apply the permission for EditWorksheet at this lsiting level.

Linked issue: #1396

Current behavior before PR

User with labclerk role cannot access to verified Worksheets

Desired behavior after PR is merged

User with labclerk role can access to verified Worksheets

--
I confirm I have tested this PR thoroughly and coded it according to PEP8
and Plone's Python styleguide standards.

The permissions for manage_results view were wrong. EditWorksheet
permission makes sense in views that are used for adding analyses,
etc. (e.g. AddDuplicates, Add Control, etc.), but the permission
for analyses listing (manage_results) in Worksheet should be
govened by ViewResults only.

If the current status of the analysis does not allow its edition
for the current user, this is handled automatically by folderitems,
so there is no sense to apply the permission for EditWorksheet at
this lsiting level.
@xispa xispa added the Bug 🐞 label Nov 26, 2019
@xispa xispa requested a review from ramonski November 26, 2019 11:44
@ramonski ramonski merged commit b3968ca into master Nov 27, 2019
@ramonski ramonski deleted the i1396 branch November 27, 2019 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants