change of the initialization of the calendar

This commit is contained in:
skeeter 2001-02-15 04:16:06 +00:00
parent 584c8dd637
commit d5bfd7d34f

View File

@ -40,17 +40,17 @@
$rights = $grants[$owner];
if ($rights == 0)
{
$owner = $phpgw_info['user']['account_id'];
$rights = PHPGW_ACL_READ + PHPGW_ACL_ADD + PHPGW_ACL_EDIT + PHPGW_ACL_DELETE + 16;
$owner = $phpgw_info['user']['account_id'];
$rights = PHPGW_ACL_READ + PHPGW_ACL_ADD + PHPGW_ACL_EDIT + PHPGW_ACL_DELETE + 16;
}
}
}
/* Load calendar class */
$parameters = Array(
'printer_friendly' => ((isset($friendly) && ($friendly==1))?True:False),
'owner' => $owner,
'rights' => $rights
'printer_friendly' => ((isset($friendly) && ($friendly==1))?True:False),
'owner' => $owner,
'rights' => $rights
);
$phpgw->calendar = CreateObject('calendar.calendar',$parameters);