[Pkg-owncloud-commits] [php-sabredav] 37/45: Skipping shared calendars when looking for events.
David Prévot
taffit at moszumanska.debian.org
Sat Jan 10 14:20:34 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabredav.
commit ef1b9c659f876996a5c1916b928fd14e0eaeeb7d
Author: Evert Pot <me at evertpot.com>
Date: Fri Jan 9 18:05:26 2015 -0500
Skipping shared calendars when looking for events.
Possible fix for #593. Needs test.
---
lib/CalDAV/Backend/AbstractBackend.php | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/CalDAV/Backend/AbstractBackend.php b/lib/CalDAV/Backend/AbstractBackend.php
index 05965f2..0538adb 100644
--- a/lib/CalDAV/Backend/AbstractBackend.php
+++ b/lib/CalDAV/Backend/AbstractBackend.php
@@ -176,6 +176,11 @@ abstract class AbstractBackend implements BackendInterface {
continue;
}
+ // Ignore calendars that are shared.
+ if (isset($calendar['{http://sabredav.org/ns}owner-principal']) && $calendar['{http://sabredav.org}owner-principal']!==$principalUri) {
+ continue;
+ }
+
$results = $this->calendarQuery(
$calendar['id'],
[
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git
More information about the Pkg-owncloud-commits
mailing list