Update app/helpers/procedure_helper.rb

Co-authored-by: LeSim <mail@simon.lehericey.net>
This commit is contained in:
Paul Chavard 2021-09-27 14:55:26 +02:00 committed by Paul Chavard
parent 7deedf8245
commit c288739f13

View file

@ -59,7 +59,7 @@ module ProcedureHelper
end
def can_manage_groupe_instructeurs?(procedure)
procedure.routee? && current_administrateur.present? && current_administrateur.owns?(procedure)
procedure.routee? && current_administrateur&.owns?(procedure)
end
def can_send_groupe_message?(procedure)