mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-13 11:15:21 +01:00
Fix: Wrong permission test
This commit is contained in:
@@ -885,8 +885,8 @@ if ($_GET["id"])
|
||||
|
||||
if ($_GET["action"] != 'edit')
|
||||
{
|
||||
if ($user->rights->agenda->allactions->modify ||
|
||||
(($act->author->id == $user->id || $act->usertodo->id == $user->id) && $user->rights->agenda->myactions->modify))
|
||||
if ($user->rights->agenda->allactions->create ||
|
||||
(($act->author->id == $user->id || $act->usertodo->id == $user->id) && $user->rights->agenda->myactions->create))
|
||||
{
|
||||
print '<a class="butAction" href="fiche.php?action=edit&id='.$act->id.'">'.$langs->trans("Modify").'</a>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user