Fix: refining permissions to modify an action without the right to remove
This commit is contained in:
parent
8c4e5d9144
commit
8fec814876
@ -896,9 +896,9 @@ if ($_GET["id"])
|
|||||||
print '<a class="butActionRefused" href="#" title="'.$langs->trans("NotAllowed").'">'.$langs->trans("Modify").'</a>';
|
print '<a class="butActionRefused" href="#" title="'.$langs->trans("NotAllowed").'">'.$langs->trans("Modify").'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($user->rights->agenda->allactions->delete ||
|
if ($user->rights->agenda->allactions->create ||
|
||||||
(($act->author->id == $user->id && $user->rights->agenda->myactions->delete) ||
|
(($act->author->id == $user->id && $user->rights->agenda->myactions->create) ||
|
||||||
($act->usertodo->id == $user->id && $user->rights->agenda->myactions->delete)))
|
($act->usertodo->id == $user->id && $user->rights->agenda->myactions->create)))
|
||||||
{
|
{
|
||||||
print '<a class="butActionDelete" href="fiche.php?action=delete&id='.$act->id.'">'.$langs->trans("Delete").'</a>';
|
print '<a class="butActionDelete" href="fiche.php?action=delete&id='.$act->id.'">'.$langs->trans("Delete").'</a>';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user