mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix Wrong test for permission in adherent car
This commit is contained in:
parent
ff14d2817d
commit
2c8da5703f
|
|
@ -1891,7 +1891,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
|
|||
}*/
|
||||
|
||||
// Modify
|
||||
if (!$user->rights->adherent->creer) {
|
||||
if ($user->rights->adherent->creer) {
|
||||
print '<a class="butAction" href="card.php?rowid='.$id.'&action=edit">'.$langs->trans("Modify").'</a>'."\n";
|
||||
} else {
|
||||
print '<span class="butActionRefused classfortooltip" title="'.dol_escape_htmltag($langs->trans("NotEnoughPermissions")).'">'.$langs->trans("Modify").'</span>'."\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user