mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
* CalDAV: fixed wrong http-status for delete in inbox and announce sync-report on inbox, so clients using it get events only once
This commit is contained in:
parent
7baddc4d39
commit
b20bd49817
@ -1440,8 +1440,8 @@ class calendar_groupdav extends groupdav_handler
|
|||||||
HTTP_WebDAV_Server::mkprop('report',array(
|
HTTP_WebDAV_Server::mkprop('report',array(
|
||||||
HTTP_WebDAV_Server::mkprop(groupdav::CALDAV,'free-busy-query',''))))),
|
HTTP_WebDAV_Server::mkprop(groupdav::CALDAV,'free-busy-query',''))))),
|
||||||
);
|
);
|
||||||
// rfc 6578 sync-collection report, not for inbox, as we dont report accepted events as deleted, because we filter!
|
// rfc 6578 sync-collection report for everything but outbox
|
||||||
if (!preg_match('#/(inbox|outbox)/#', $path))
|
if (strpos($path, '/outbox/') === false)
|
||||||
{
|
{
|
||||||
$props['supported-report-set']['sync-collection'] = HTTP_WebDAV_Server::mkprop('supported-report',array(
|
$props['supported-report-set']['sync-collection'] = HTTP_WebDAV_Server::mkprop('supported-report',array(
|
||||||
HTTP_WebDAV_Server::mkprop('report',array(
|
HTTP_WebDAV_Server::mkprop('report',array(
|
||||||
|
@ -1875,6 +1875,11 @@ class groupdav extends HTTP_WebDAV_Server
|
|||||||
{
|
{
|
||||||
$user_prefix = '/'.$user;
|
$user_prefix = '/'.$user;
|
||||||
$user = $account_id;
|
$user = $account_id;
|
||||||
|
// /<currentuser>/inbox/
|
||||||
|
if ($user == $GLOBALS['egw_info']['user']['account_id'] && $app == 'inbox')
|
||||||
|
{
|
||||||
|
$app = 'calendar';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user