From bb9fac1597226ed3fedbb6fff86c7ef46220cbb6 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 29 Nov 2009 20:13:12 +0000 Subject: [PATCH] Fix: Wrong permission test --- 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 146d20e5e3a..c616ffaafcb 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -885,8 +885,8 @@ if ($_GET["id"]) if ($_GET["action"] != 'edit') { - 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("Modify").''; }