diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index 3a193b8222b..e4625462b0e 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -886,8 +886,7 @@ if ($_GET["id"]) if ($_GET["action"] != 'edit') { if ($user->rights->agenda->allactions->modify || - (($act->author->id == $user->id && $user->rights->agenda->myactions->modify) || - ($act->usertodo->id == $user->id && $user->rights->agenda->myactions->modify))) + (($act->author->id == $user->id || $act->usertodo->id == $user->id) && $user->rights->agenda->myactions->modify)) { print ''.$langs->trans("Modify").''; } @@ -896,9 +895,8 @@ if ($_GET["id"]) print ''.$langs->trans("Modify").''; } - if ($user->rights->agenda->allactions->create || - (($act->author->id == $user->id && $user->rights->agenda->myactions->create) || - ($act->usertodo->id == $user->id && $user->rights->agenda->myactions->create))) + if ($user->rights->agenda->allactions->modify || + (($act->author->id == $user->id || $act->usertodo->id == $user->id) && $user->rights->agenda->myactions->modify)) { print ''.$langs->trans("Delete").''; }