From 8fec8148769cf59a8fb958caa5c914990116e4b9 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 10 Nov 2009 12:43:00 +0000 Subject: [PATCH] Fix: refining permissions to modify an action without the right to remove --- htdocs/comm/action/fiche.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index 9aa67180edc..3a193b8222b 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -896,9 +896,9 @@ if ($_GET["id"]) print ''.$langs->trans("Modify").''; } - if ($user->rights->agenda->allactions->delete || - (($act->author->id == $user->id && $user->rights->agenda->myactions->delete) || - ($act->usertodo->id == $user->id && $user->rights->agenda->myactions->delete))) + 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))) { print ''.$langs->trans("Delete").''; }