mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
Differentiate GroupDAV collections
This commit is contained in:
parent
0ec9d18b23
commit
abd19f0f27
@ -114,6 +114,9 @@ class calendar_groupdav extends groupdav_handler
|
||||
'daywise' => false,
|
||||
'date_format' => 'server',
|
||||
);
|
||||
|
||||
if ($path != '/calendar/') $cal_filters['filter'] = 'owner';
|
||||
|
||||
/*
|
||||
if ($this->client_shared_uid_exceptions)
|
||||
{
|
||||
|
@ -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,
|
||||
))))
|
||||
|
Loading…
Reference in New Issue
Block a user