From 57771cd083c14cb915445bd8f2ca96b8c0035f2a Mon Sep 17 00:00:00 2001 From: Robert Date: Wed, 31 May 2017 16:42:11 +0200 Subject: Fixes: #3174 --- app/views/referentials/show.html.slim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/referentials/show.html.slim b/app/views/referentials/show.html.slim index befa851ab..cad076e2c 100644 --- a/app/views/referentials/show.html.slim +++ b/app/views/referentials/show.html.slim @@ -80,4 +80,5 @@ .modal-footer button.btn.btn-link type='button' data-dismiss='modal' Annuler - = f.button :submit, t('actions.clean_up') , class: 'btn btn-primary' + - unless policy(@referential).archived? + = buttonf.button :submit, t('actions.clean_up') , class: 'btn btn-primary' -- cgit v1.2.3