Merge branch 'develop' into staging
This commit is contained in:
commit
18a0cbd296
1 changed files with 5 additions and 0 deletions
|
@ -10,5 +10,10 @@ class Admin::ChangeDossierStateController < AdminController
|
||||||
|
|
||||||
def check
|
def check
|
||||||
@dossier = Dossier.find(params[:dossier][:id])
|
@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
|
||||||
end
|
end
|
Loading…
Reference in a new issue