diff --git a/htdocs/adherents/type.php b/htdocs/adherents/type.php index f46b6d0268c77e3a4a21d75ba484dda420543aa7..bae064bef346fe0ea5251ccdbb562c84756ad52e 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++; }