Fix: Wrong permission test
This commit is contained in:
parent
659f0eb4f2
commit
bb9fac1597
@ -885,8 +885,8 @@ if ($_GET["id"])
|
|||||||
|
|
||||||
if ($_GET["action"] != 'edit')
|
if ($_GET["action"] != 'edit')
|
||||||
{
|
{
|
||||||
if ($user->rights->agenda->allactions->modify ||
|
if ($user->rights->agenda->allactions->create ||
|
||||||
(($act->author->id == $user->id || $act->usertodo->id == $user->id) && $user->rights->agenda->myactions->modify))
|
(($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>';
|
print '<a class="butAction" href="fiche.php?action=edit&id='.$act->id.'">'.$langs->trans("Modify").'</a>';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user