summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Command
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2017-12-04 15:02:55 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2017-12-11 16:04:55 +0100
commit6802e2b59a8973b1e7b9c3aaafc5073df51677f9 (patch)
tree645af13ee93f037305c5d51149f4661f3cfe9a9c /apps/dav/lib/Command
parentf54303985872c5d884a2572c652c68e5e784074e (diff)
downloadnextcloud-server-6802e2b59a8973b1e7b9c3aaafc5073df51677f9.tar.gz
nextcloud-server-6802e2b59a8973b1e7b9c3aaafc5073df51677f9.zip
Principal search: Take sharing settings into account
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/dav/lib/Command')
-rw-r--r--apps/dav/lib/Command/CreateCalendar.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/dav/lib/Command/CreateCalendar.php b/apps/dav/lib/Command/CreateCalendar.php
index 190e4aa339f..1cbd7b60944 100644
--- a/apps/dav/lib/Command/CreateCalendar.php
+++ b/apps/dav/lib/Command/CreateCalendar.php
@@ -75,7 +75,9 @@ class CreateCalendar extends Command {
}
$principalBackend = new Principal(
$this->userManager,
- $this->groupManager
+ $this->groupManager,
+ \OC::$server->getShareManager(),
+ \OC::$server->getUserSession()
);
$random = \OC::$server->getSecureRandom();
$logger = \OC::$server->getLogger();