mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
fixed problem with blanks in account_id of owner parameter
This commit is contained in:
parent
41f055f874
commit
b1ba17a702
@ -326,6 +326,7 @@ class calendar_bo
|
|||||||
$users = array();
|
$users = array();
|
||||||
foreach($params['users'] as $user)
|
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 ($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?
|
if ($user && !in_array($user,$users)) // already added?
|
||||||
|
@ -183,6 +183,7 @@ class calendar_ui
|
|||||||
$no_access = $no_access_group = array();
|
$no_access = $no_access_group = array();
|
||||||
foreach(explode(',',$this->owner) as $owner)
|
foreach(explode(',',$this->owner) as $owner)
|
||||||
{
|
{
|
||||||
|
$owner = trim($owner);
|
||||||
if (is_numeric($owner) && $GLOBALS['egw']->accounts->get_type($owner) == 'g')
|
if (is_numeric($owner) && $GLOBALS['egw']->accounts->get_type($owner) == 'g')
|
||||||
{
|
{
|
||||||
foreach($GLOBALS['egw']->accounts->member($owner) as $member)
|
foreach($GLOBALS['egw']->accounts->member($owner) as $member)
|
||||||
|
Loading…
Reference in New Issue
Block a user