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

User with "Analyst" role cannot submit analyses from worksheet #1475

Merged
merged 3 commits into from
Nov 23, 2019
Merged

Conversation

xispa
Copy link
Member

@xispa xispa commented Nov 22, 2019

Description of the issue/feature this PR addresses

Assigned analyst to a given worksheet cannot submit the results, but save them only when the setting "Allow to submit results for unassigned analyses or for analyses assigned to others" from Setup is disabled.

Linked issue: #1409

Current behavior before PR

Assigned analyst can save, but not submit results in worksheet

Desired behavior after PR is merged

Assigned analyst can save and submit results in worksheet

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

@xispa xispa added the Bug 🐞 label Nov 22, 2019
@xispa xispa requested a review from ramonski November 22, 2019 12:18
return False
# Cannot submit if assigned analyst is not the current user
if analysis.getAnalyst() != api.get_current_user().getId():
if analyst != api.get_current_user().getId():
Copy link
Contributor

Choose a reason for hiding this comment

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

@ramonski ramonski merged commit 9d4ab19 into master Nov 23, 2019
@ramonski ramonski deleted the i1431 branch November 23, 2019 20:00
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