From 7ee38b26df9a4e442303c4e71228903f9bae1e13 Mon Sep 17 00:00:00 2001 From: salekam Date: Fri, 12 Apr 2024 17:02:08 +0100 Subject: [PATCH] CTCTOWALTZ-3147 Survey recipient who are not owners should NOT be able to reopen (reissue themselves) approved surveys --- .../waltz/model/survey/SurveyInstanceStateMachineFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waltz-model/src/main/java/org/finos/waltz/model/survey/SurveyInstanceStateMachineFactory.java b/waltz-model/src/main/java/org/finos/waltz/model/survey/SurveyInstanceStateMachineFactory.java index 05afa8baea..a48ce32480 100644 --- a/waltz-model/src/main/java/org/finos/waltz/model/survey/SurveyInstanceStateMachineFactory.java +++ b/waltz-model/src/main/java/org/finos/waltz/model/survey/SurveyInstanceStateMachineFactory.java @@ -29,7 +29,7 @@ public class SurveyInstanceStateMachineFactory { simpleTransitions.add(COMPLETED, SurveyInstanceStateTransition.transition(APPROVING, APPROVED, isAdminOrOwner)); simpleTransitions.add(COMPLETED, SurveyInstanceStateTransition.transition(REJECTING, REJECTED, isAdminOrOwner)); - simpleTransitions.add(APPROVED, SurveyInstanceStateTransition.transition(REOPENING, IN_PROGRESS, isAdminOrOwnerOrParticipant)); + simpleTransitions.add(APPROVED, SurveyInstanceStateTransition.transition(REOPENING, IN_PROGRESS, isAdminOrOwner)); simpleTransitions.add(REJECTED, SurveyInstanceStateTransition.transition(WITHDRAWING, WITHDRAWN, isAdminOrOwner)); simpleTransitions.add(REJECTED, SurveyInstanceStateTransition.transition(REOPENING, IN_PROGRESS, isAdminOrOwnerOrParticipant));