Fix: Bouton supprimer non conditionn sur droit supprim
This commit is contained in:
parent
e4df4d0179
commit
99b5b6388d
@ -40,6 +40,8 @@ $langs->load("bills");
|
||||
$langs->load("members");
|
||||
$langs->load("users");
|
||||
|
||||
$user->getrights('adherent');
|
||||
|
||||
$adho = new AdherentOptions($db);
|
||||
$errmsg='';
|
||||
|
||||
@ -803,7 +805,8 @@ if ($rowid && $action != 'edit')
|
||||
}
|
||||
|
||||
// Supprimer
|
||||
if ($user->admin) {
|
||||
if ($user->rights->adherent->supprimer)
|
||||
{
|
||||
print "<a class=\"butActionDelete\" href=\"fiche.php?rowid=$adh->id&action=delete\">".$langs->trans("Delete")."</a>\n";
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user