Fix ProcedureAdministrateursController#destroy
- The "no remove oneself" rule wasn't actually enforced - `flash.error` is not a flash category
This commit is contained in:
parent
fb75a55b89
commit
062f52feb9
2 changed files with 15 additions and 3 deletions
|
@ -32,7 +32,8 @@ module Administrateurs
|
|||
|
||||
# Prevent self-removal (Also enforced in the UI)
|
||||
if administrateur == current_administrateur
|
||||
flash.error = "Vous ne pouvez pas vous retirer vous-même d’une démarche."
|
||||
flash.alert = "Vous ne pouvez pas vous retirer vous-même d’une démarche."
|
||||
return
|
||||
end
|
||||
|
||||
# Actually remove the admin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue