diff --git a/orm/entities/Submission/TallySheet/__init__.py b/orm/entities/Submission/TallySheet/__init__.py index 33d80f2e..0c84c3b1 100644 --- a/orm/entities/Submission/TallySheet/__init__.py +++ b/orm/entities/Submission/TallySheet/__init__.py @@ -47,11 +47,11 @@ def set_latest_version(self, tallySheetVersion: TallySheetVersion): self.submission.set_latest_version(submissionVersion=tallySheetVersion.submissionVersion) def set_locked_version(self, tallySheetVersion: TallySheetVersion): - if DATA_EDITOR_ROLE in get_user_roles() and self.submittedStamp.createdBy == get_user_name(): - raise ForbiddenException( - message="Tally sheet submitted user is not allowed to lock/unlock.", - code=MESSAGE_CODE_TALLY_SHEET_SAME_USER_CANNOT_SAVE_AND_SUBMIT - ) + # if DATA_EDITOR_ROLE in get_user_roles() and self.submittedStamp.createdBy == get_user_name(): + # raise ForbiddenException( + # message="Tally sheet submitted user is not allowed to lock/unlock.", + # code=MESSAGE_CODE_TALLY_SHEET_SAME_USER_CANNOT_SAVE_AND_SUBMIT + # ) if tallySheetVersion is None: if not has_role_based_access(self, ACCESS_TYPE_UNLOCK):