Bouton supprimer ne devrait être visible que par les admins

This commit is contained in:
bohwaz 2021-12-17 14:19:52 +01:00
parent b644eb34bf
commit 651d035ecc

View File

@ -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}
<div style="margin-top: 1em; width: min-content;">
<embed src="pdf.php?id={$id}" type="application/pdf" width="840px" height="1188px" style="max-width: 900px; border: 1px solid black;">