Add depubliee state to procedures
This commit is contained in:
parent
4a614f6f4f
commit
2f060fc30a
16 changed files with 207 additions and 119 deletions
|
@ -52,7 +52,7 @@ class Admin::ProceduresController < AdminController
|
|||
def destroy
|
||||
procedure = current_administrateur.procedures.find(params[:id])
|
||||
|
||||
if procedure.publiee_ou_close?
|
||||
if procedure.locked?
|
||||
return render json: {}, status: 401
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue