Differentiate GroupDAV collections

This commit is contained in:
Jörg Lehrke 2010-03-11 07:59:38 +00:00
parent 3f108b9144
commit 5b4f0076f2
2 changed files with 14 additions and 2 deletions

View File

@ -114,6 +114,9 @@ class calendar_groupdav extends groupdav_handler
'daywise' => false,
'date_format' => 'server',
);
if ($path == '/calendar/') $cal_filters['show_rejected'] = false;
/*
if ($this->client_shared_uid_exceptions)
{

View File

@ -75,6 +75,15 @@ class infolog_groupdav extends groupdav_handler
$myself = ($user == $GLOBALS['egw_info']['user']['account_id']);
if ($path == '/infolog/')
{
$task_filter= 'open';
}
else
{
$task_filter= 'own' . ($myself?'':'-open');
}
if ($options['filters'])
{
@ -124,8 +133,8 @@ class infolog_groupdav extends groupdav_handler
if (($tasks =& $this->bo->search($params=array(
'order' => 'info_datemodified',
'sort' => 'DESC',
'filter' => ($myself ? 'own' : 'own'), // filter my: entries user is responsible for,
// filter own: entries the user own or is responsible for
'filter' => $task_filter, // filter my: entries user is responsible for,
// filter own: entries the user own or is responsible for
'date_format' => 'server',
'col_filter' => $filter,
))))