diff --git a/calendar/inc/functions.inc.php b/calendar/inc/functions.inc.php index d66886eccc..b42503d84d 100755 --- a/calendar/inc/functions.inc.php +++ b/calendar/inc/functions.inc.php @@ -24,6 +24,7 @@ // This is the initialization of the ACL usage +// $grants = Array(); $grants = $phpgw->acl->get_grants('calendar'); if(!isset($owner)) @@ -37,8 +38,7 @@ { $owner = $phpgw_info['user']['account_id']; $rights = PHPGW_ACL_READ + PHPGW_ACL_ADD + PHPGW_ACL_EDIT + PHPGW_ACL_DELETE + PHPGW_ACL_PRIVATE; - $grants = Array(); - $grants[$owner] = "$rights"; + $grants[$owner] = $rights; } else {