Fixed a problem where the list of grantors was being reset when no owner being set.

This commit is contained in:
skeeter 2001-06-07 12:11:29 +00:00
parent dbb58d801c
commit 3c4083748c

View File

@ -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
{