From 51b82eba43bfb67ed28ed709805eda420cd26c26 Mon Sep 17 00:00:00 2001 From: BENKE Charlie 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 ''.dol_escape_htmltag($objp->libelle).''; print ''.yn($objp->cotisation).''; print ''.yn($objp->vote).''; - print 'rowid.'">'.img_edit().''; + if ($user->rights->adherent->configurer) + print 'rowid.'">'.img_edit().''; + else + print ' '; print ""; $i++; }