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("members");
|
||||||
$langs->load("users");
|
$langs->load("users");
|
||||||
|
|
||||||
|
$user->getrights('adherent');
|
||||||
|
|
||||||
$adho = new AdherentOptions($db);
|
$adho = new AdherentOptions($db);
|
||||||
$errmsg='';
|
$errmsg='';
|
||||||
|
|
||||||
@ -803,7 +805,8 @@ if ($rowid && $action != 'edit')
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Supprimer
|
// 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";
|
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