forked from extern/egroupware
Differentiate GroupDAV collections
This commit is contained in:
parent
ca3f3b463f
commit
89f7d50cec
@ -114,6 +114,9 @@ class calendar_groupdav extends groupdav_handler
|
|||||||
'daywise' => false,
|
'daywise' => false,
|
||||||
'date_format' => 'server',
|
'date_format' => 'server',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if ($path != '/calendar/') $cal_filters['filter'] = 'owner';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if ($this->client_shared_uid_exceptions)
|
if ($this->client_shared_uid_exceptions)
|
||||||
{
|
{
|
||||||
|
@ -75,6 +75,15 @@ class infolog_groupdav extends groupdav_handler
|
|||||||
|
|
||||||
$myself = ($user == $GLOBALS['egw_info']['user']['account_id']);
|
$myself = ($user == $GLOBALS['egw_info']['user']['account_id']);
|
||||||
|
|
||||||
|
if ($path == '/infolog/')
|
||||||
|
{
|
||||||
|
$task_filter= 'open';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$task_filter= 'own' . ($myself?'':'-open');
|
||||||
|
}
|
||||||
|
|
||||||
if ($options['filters'])
|
if ($options['filters'])
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -124,7 +133,7 @@ class infolog_groupdav extends groupdav_handler
|
|||||||
if (($tasks =& $this->bo->search($params=array(
|
if (($tasks =& $this->bo->search($params=array(
|
||||||
'order' => 'info_datemodified',
|
'order' => 'info_datemodified',
|
||||||
'sort' => 'DESC',
|
'sort' => 'DESC',
|
||||||
'filter' => ($myself ? 'own' : 'own'), // filter my: entries user is responsible for,
|
'filter' => $task_filter, // filter my: entries user is responsible for,
|
||||||
// filter own: entries the user own or is responsible for
|
// filter own: entries the user own or is responsible for
|
||||||
'date_format' => 'server',
|
'date_format' => 'server',
|
||||||
'col_filter' => $filter,
|
'col_filter' => $filter,
|
||||||
|
Loading…
Reference in New Issue
Block a user