fixed own calendar was listed as shared too

This commit is contained in:
Ralf Becker 2012-03-01 13:28:38 +00:00
parent b2a6e59b09
commit 9b71a5c17a

View File

@ -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)))
{ {