Skip to content

Commit

Permalink
Merge pull request #644 from VinceMacBuche/bug_24143/when_self_deploy…
Browse files Browse the repository at this point in the history
…ment_is_enabled_you_can_still_deploy_your_changes

Fixes #24143: When self deployment is enabled, you can still deploy your changes.
  • Loading branch information
fanf committed Feb 5, 2024
2 parents b37ef3f + 2ef46cd commit 34968e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ object TwoValidationStepsWorkflowServiceImpl {
}

private def canDeploy(isCreator: Boolean, selfDeployment: () => Box[Boolean]): Boolean = {
val correctActor = selfDeployment().getOrElse(false) || isCreator
val correctActor = selfDeployment().getOrElse(false) || !isCreator
correctActor && CurrentUser.checkRights(AuthorizationType.Deployer.Edit)
}

Expand Down

0 comments on commit 34968e7

Please sign in to comment.