mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
Fixed a problem where the list of grantors was being reset when no owner being set.
This commit is contained in:
parent
dbb58d801c
commit
3c4083748c
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user