From 651d035ecc9e4fdc74dffaa7f7481dd86c002bd5 Mon Sep 17 00:00:00 2001 From: bohwaz Date: Fri, 17 Dec 2021 14:19:52 +0100 Subject: [PATCH] =?UTF-8?q?Bouton=20supprimer=20ne=20devrait=20=C3=AAtre?= =?UTF-8?q?=20visible=20que=20par=20les=20admins?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/facture.tpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/facture.tpl b/templates/facture.tpl index 4c29ed8..2cf218a 100644 --- a/templates/facture.tpl +++ b/templates/facture.tpl @@ -9,7 +9,9 @@ {linkbutton shape="download" href="%spdf.php?d&id=%d"|args:$plugin_url,$facture.id label="Télécharger ce document"} +{if $session->canAccess($session::SECTION_ACCOUNTING, $session::ACCESS_ADMIN)} {linkbutton shape="delete" href="%sfacture_supprimer.php?id=%d"|args:$plugin_url,$facture.id label="Supprimer ce document"} +{/if}