Skip to content

Commit

Permalink
fix policy for next_stage
Browse files Browse the repository at this point in the history
  • Loading branch information
JeSuisUnCaillou committed Jan 15, 2025
1 parent 446268a commit 97cb2b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/policies/authorization_request_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ def transfer?
end

def start_next_stage?
record.definition.next_stage? &&
same_user_and_organization? &&
record.definition.next_stage? &&
record.validated?
end

Expand Down

0 comments on commit 97cb2b9

Please sign in to comment.