fixed problem with blanks in account_id of owner parameter

This commit is contained in:
Ralf Becker 2009-12-04 10:25:26 +00:00
parent 41f055f874
commit b1ba17a702
2 changed files with 2 additions and 0 deletions

View File

@ -326,6 +326,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?

View File

@ -183,6 +183,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)