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');
|