Merge branch 'staging'
This commit is contained in:
commit
91c7fc8d68
1 changed files with 5 additions and 0 deletions
|
@ -10,5 +10,10 @@ class Admin::ChangeDossierStateController < AdminController
|
|||
|
||||
def check
|
||||
@dossier = Dossier.find(params[:dossier][:id])
|
||||
|
||||
unless @dossier.procedure.administrateur.email == current_administrateur.email
|
||||
flash.alert = 'Dossier introuvable'
|
||||
return redirect_to admin_change_dossier_state_path
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue