From 04ccfbe868f1ad9eee60308bf51fbf272d5d2944 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 26 Feb 2009 00:59:33 +0000 Subject: [PATCH] Fix: Permission on action create --- htdocs/comm/action/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index 1389572a67b..89117c517ca 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -509,7 +509,7 @@ function show_day_events($db, $day, $month, $year, $style, $actionarray, $maxPri print ''; print ''.dol_print_date($curtime,'%a %d').''; print ''; - if ($user->agenda->myactions->create || $user->agenda->actions->create) + if ($user->rights->agenda->myactions->create || $user->rights->agenda->actions->create) { print ''; print img_picto($langs->trans("NewAction"),'edit_add.png');