From 9b71a5c17a82f9b438aeb36002ec916d55956088 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 1 Mar 2012 13:28:38 +0000 Subject: [PATCH] fixed own calendar was listed as shared too --- calendar/inc/class.calendar_groupdav.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_groupdav.inc.php b/calendar/inc/class.calendar_groupdav.inc.php index 8c1887f973..2ae40c8791 100644 --- a/calendar/inc/class.calendar_groupdav.inc.php +++ b/calendar/inc/class.calendar_groupdav.inc.php @@ -1256,7 +1256,7 @@ class calendar_groupdav extends groupdav_handler foreach(ExecMethod('calendar.calendar_bo.list_cals') as $entry) { $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)) && is_numeric($id) && ($owner = $this->accounts->id2name($id))) {