From dbf0a540d4d68f5a88cc4c350004a202e68aade1 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 10 Nov 2009 12:49:41 +0000 Subject: [PATCH] Fix: refining permissions to modify an action without the right to remove --- htdocs/comm/action/fiche.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index e4625462b0e..8281b414b77 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -895,8 +895,8 @@ if ($_GET["id"]) print ''.$langs->trans("Modify").''; } - 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 ''.$langs->trans("Delete").''; }