Add Procedure#publiee_ou_archivee?
This commit is contained in:
parent
2b7a148540
commit
32e0fa9f69
5 changed files with 22 additions and 6 deletions
|
@ -53,7 +53,7 @@ class Admin::ProceduresController < AdminController
|
|||
def destroy
|
||||
procedure = Procedure.find(params[:id])
|
||||
|
||||
return render json: {}, status: 401 if procedure.publiee? || procedure.archivee?
|
||||
return render json: {}, status: 401 if procedure.publiee_ou_archivee?
|
||||
|
||||
procedure.destroy
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue