mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
fixed own calendar was listed as shared too
This commit is contained in:
parent
b2a6e59b09
commit
9b71a5c17a
@ -1256,7 +1256,7 @@ class calendar_groupdav extends groupdav_handler
|
|||||||
foreach(ExecMethod('calendar.calendar_bo.list_cals') as $entry)
|
foreach(ExecMethod('calendar.calendar_bo.list_cals') as $entry)
|
||||||
{
|
{
|
||||||
$id = $entry['grantor'];
|
$id = $entry['grantor'];
|
||||||
if ($id && $user != $id && // no current user and no accounts yet (todo)
|
if ($id && $GLOBALS['egw_info']['user']['account_id'] != $id && // no current user
|
||||||
(in_array('A',$calendar_home_set) || in_array((string)$id,$calendar_home_set)) &&
|
(in_array('A',$calendar_home_set) || in_array((string)$id,$calendar_home_set)) &&
|
||||||
is_numeric($id) && ($owner = $this->accounts->id2name($id)))
|
is_numeric($id) && ($owner = $this->accounts->id2name($id)))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user