Skip to content

Commit

Permalink
fix error in TC scneario permission check
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal-Delange committed Oct 1, 2024
1 parent bf5049c commit bc5f082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usecases/decision_usecase.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func (usecase *DecisionUsecase) CreateDecision(
return models.DecisionWithRuleExecutions{},
errors.Wrap(err, "error getting scenario")
}
if !params.WithScenarioPermissionCheck {
if params.WithScenarioPermissionCheck {
if err := usecase.enforceSecurityScenario.ReadScenario(scenario); err != nil {
return models.DecisionWithRuleExecutions{}, err
}
Expand Down

0 comments on commit bc5f082

Please sign in to comment.