Skip to content

Commit

Permalink
Resp antenne régionale paut modifier les MER
Browse files Browse the repository at this point in the history
  • Loading branch information
clairezed committed Feb 5, 2025
1 parent 4d477f9 commit 85430b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/policies/match_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ def update?
end

def update_status?
admin? || (@user.is_manager? && (@user.managed_antennes.include?(@record.expert.antenne)))
admin? || (@user.is_manager? && @user.managed_antennes.include?(@record.expert.antenne)) ||
(@user.is_manager? && @user.supervised_antennes.include?(@record.expert.antenne))
end

def show_info?
Expand Down

0 comments on commit 85430b3

Please sign in to comment.