diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-17 10:31:33 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-24 09:53:36 +0100 |
commit | 4c738ea9c47686e35ff6ad3e4617446849dca3c0 (patch) | |
tree | cc6fe1e883a7f7abeecba910157be4b61bdab8fc /apps/dav/lib/caldav/caldavbackend.php | |
parent | 4b3af9dfe781dc875f3bf94cd31e658ef1d707a9 (diff) | |
download | nextcloud-server-4c738ea9c47686e35ff6ad3e4617446849dca3c0.tar.gz nextcloud-server-4c738ea9c47686e35ff6ad3e4617446849dca3c0.zip |
Fix group shares on v1 caldav and carddav - fixes #23328
Diffstat (limited to 'apps/dav/lib/caldav/caldavbackend.php')
-rw-r--r-- | apps/dav/lib/caldav/caldavbackend.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dav/lib/caldav/caldavbackend.php b/apps/dav/lib/caldav/caldavbackend.php index bb50100d9a2..79bbcefaab1 100644 --- a/apps/dav/lib/caldav/caldavbackend.php +++ b/apps/dav/lib/caldav/caldavbackend.php @@ -138,6 +138,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription * @return array */ function getCalendarsForUser($principalUri) { + $principalUriOriginal = $principalUri; $principalUri = $this->convertPrincipal($principalUri, true); $fields = array_values($this->propertyMap); $fields[] = 'id'; @@ -184,7 +185,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription $stmt->closeCursor(); // query for shared calendars - $principals = $this->principalBackend->getGroupMembership($principalUri); + $principals = $this->principalBackend->getGroupMembership($principalUriOriginal, true); $principals[]= $principalUri; $fields = array_values($this->propertyMap); |