diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-12-23 12:12:38 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-03-29 00:04:29 +0200 |
commit | 23aab05bdaaaff8310cad64ff028bc7a53656f5a (patch) | |
tree | 740ea5687fab84d77fe622ef236fcac2c9054483 /apps/dav/lib/RootCollection.php | |
parent | 4821c00ea81797fcb5a99c31105ad42be598f113 (diff) | |
download | nextcloud-server-23aab05bdaaaff8310cad64ff028bc7a53656f5a.tar.gz nextcloud-server-23aab05bdaaaff8310cad64ff028bc7a53656f5a.zip |
Adding dav resource for avatars
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/dav/lib/RootCollection.php')
-rw-r--r-- | apps/dav/lib/RootCollection.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/dav/lib/RootCollection.php b/apps/dav/lib/RootCollection.php index 478f0929c20..a243ec6d00a 100644 --- a/apps/dav/lib/RootCollection.php +++ b/apps/dav/lib/RootCollection.php @@ -99,6 +99,9 @@ class RootCollection extends SimpleCollection { $uploadCollection = new Upload\RootCollection($userPrincipalBackend, 'principals/users'); $uploadCollection->disableListing = $disableListing; + $avatarCollection = new Avatars\RootCollection($userPrincipalBackend, 'principals/users'); + $avatarCollection->disableListing = $disableListing; + $children = [ new SimpleCollection('principals', [ $userPrincipals, @@ -114,6 +117,7 @@ class RootCollection extends SimpleCollection { $systemTagRelationsCollection, $commentsCollection, $uploadCollection, + $avatarCollection ]; parent::__construct('root', $children); |