Fix unwanted extra participants in consolidated views when new event participant preference is 'just me' - month view

This commit is contained in:
nathangray 2016-09-13 10:10:36 -06:00
parent 6bc609c68b
commit 168b5640f6

View File

@ -92,6 +92,10 @@ class calendar_uiforms extends calendar_ui
if (isset($_GET['owner']))
{
$owner = $_GET['owner'];
if(!is_array($owner) && strpos($owner, ','))
{
$owner = explode(',',$owner);
}
if(is_array($owner))
{
if($this->cal_prefs['default_participant'])
@ -109,6 +113,7 @@ class calendar_uiforms extends calendar_ui
{
$owner = !$this->cal_prefs['default_participant'] ? $this->user : $this->owner;
}
error_log(__METHOD__ . ' owner: ' . array2string($owner));
if (!$owner || !is_numeric($owner) || $GLOBALS['egw']->accounts->get_type($owner) != 'u' ||
!$this->bo->check_perms(Acl::ADD,0,$owner))