From 3c4083748c651710b6c09f800e744309771b6d6c Mon Sep 17 00:00:00 2001 From: skeeter Date: Thu, 7 Jun 2001 12:11:29 +0000 Subject: [PATCH] Fixed a problem where the list of grantors was being reset when no owner being set. --- calendar/inc/functions.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {