Skip to content

Commit

Permalink
Merge pull request #1758 from veroc/veroc_field_result_permission
Browse files Browse the repository at this point in the history
check permission for field result edit.
  • Loading branch information
rockfruit committed Feb 1, 2016
2 parents 357c780 + 2a4f028 commit 5b1d950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bika/lims/browser/analysisrequest/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def workflow_action_submit(self):
if not analysis:
continue
# Prevent saving data if the analysis is already transitioned
if not checkPermission(EditResults, analysis):
if not (checkPermission(EditResults, analysis) or checkPermission(EditFieldResults, analysis)):
title = safe_unicode(analysis.getService().Title())
msgid = _('Result for ${analysis} could not be saved because '
'it was already submitted by another user.',
Expand Down

0 comments on commit 5b1d950

Please sign in to comment.