mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
fixed problem with blanks in account_id of owner parameter
This commit is contained in:
parent
44b15c1775
commit
8a9392c681
@ -337,6 +337,7 @@ class calendar_bo
|
||||
$users = array();
|
||||
foreach($params['users'] as $user)
|
||||
{
|
||||
$user = trim($user);
|
||||
if ($params['ignore_acl'] || $this->check_perms(EGW_ACL_READ|EGW_ACL_READ_FOR_PARTICIPANTS|EGW_ACL_FREEBUSY,0,$user))
|
||||
{
|
||||
if ($user && !in_array($user,$users)) // already added?
|
||||
|
@ -177,6 +177,7 @@ class calendar_ui
|
||||
$no_access = $no_access_group = array();
|
||||
foreach(explode(',',$this->owner) as $owner)
|
||||
{
|
||||
$owner = trim($owner);
|
||||
if (is_numeric($owner) && $GLOBALS['egw']->accounts->get_type($owner) == 'g')
|
||||
{
|
||||
foreach($GLOBALS['egw']->accounts->member($owner) as $member)
|
||||
|
Loading…
Reference in New Issue
Block a user