From 51b82eba43bfb67ed28ed709805eda420cd26c26 Mon Sep 17 00:00:00 2001 From: BENKE Charlie <charles.fr@benke.fr> Date: Fri, 25 Mar 2016 18:19:51 +0100 Subject: [PATCH] if we not allowed to edit we don't edit --- htdocs/adherents/type.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/adherents/type.php b/htdocs/adherents/type.php index f46b6d0268c..bae064bef34 100644 --- a/htdocs/adherents/type.php +++ b/htdocs/adherents/type.php @@ -200,7 +200,10 @@ if (! $rowid && $action != 'create' && $action != 'edit') print '<td>'.dol_escape_htmltag($objp->libelle).'</td>'; print '<td align="center">'.yn($objp->cotisation).'</td>'; print '<td align="center">'.yn($objp->vote).'</td>'; - print '<td align="right"><a href="'.$_SERVER["PHP_SELF"].'?action=edit&rowid='.$objp->rowid.'">'.img_edit().'</a></td>'; + if ($user->rights->adherent->configurer) + print '<td align="right"><a href="'.$_SERVER["PHP_SELF"].'?action=edit&rowid='.$objp->rowid.'">'.img_edit().'</a></td>'; + else + print '<td align="right"> </td>'; print "</tr>"; $i++; } -- GitLab