From f5f89974730f3b2e637c97a69c9722c4215f7c15 Mon Sep 17 00:00:00 2001 From: Dinuka De Silva Date: Fri, 14 Aug 2020 21:38:43 +0530 Subject: [PATCH] gh-820: Fix parent tally sheet status validation when request changes This fixes #820 --- results-tabulation-api/ext/ExtendedTallySheet/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/results-tabulation-api/ext/ExtendedTallySheet/__init__.py b/results-tabulation-api/ext/ExtendedTallySheet/__init__.py index e76fdd36..0e676956 100644 --- a/results-tabulation-api/ext/ExtendedTallySheet/__init__.py +++ b/results-tabulation-api/ext/ExtendedTallySheet/__init__.py @@ -151,7 +151,7 @@ def authorize_workflow_action(self, workflow_action, content=None): code=MESSAGE_CODE_WORKFLOW_ACTION_NOT_AUTHORIZED) if workflow_action.actionType == WORKFLOW_ACTION_TYPE_REQUEST_CHANGES and workflow_action.toStatus in [ - WORKFLOW_STATUS_TYPE_SAVED, WORKFLOW_STATUS_TYPE_EMPTY]: + WORKFLOW_STATUS_TYPE_CHANGES_REQUESTED]: from orm.entities.Submission import TallySheet from orm.entities.Submission.TallySheet import TallySheetTallySheetModel