summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/RootCollection.php
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/RootCollection.php
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/RootCollection.php')
-rw-r--r--apps/dav/lib/RootCollection.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/dav/lib/RootCollection.php b/apps/dav/lib/RootCollection.php
index c0f7b1e497b..f2e9350c101 100644
--- a/apps/dav/lib/RootCollection.php
+++ b/apps/dav/lib/RootCollection.php
@@ -43,11 +43,14 @@ class RootCollection extends SimpleCollection {
$logger = \OC::$server->getLogger();
$userManager = \OC::$server->getUserManager();
$groupManager = \OC::$server->getGroupManager();
+ $shareManager = \OC::$server->getShareManager();
$db = \OC::$server->getDatabaseConnection();
$dispatcher = \OC::$server->getEventDispatcher();
$userPrincipalBackend = new Principal(
$userManager,
- $groupManager
+ $groupManager,
+ $shareManager,
+ \OC::$server->getUserSession()
);
$groupPrincipalBackend = new GroupPrincipalBackend($groupManager);
// as soon as debug mode is enabled we allow listing of principals