summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/server.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-02-19 19:45:03 +0100
committerLukas Reschke <lukas@owncloud.com>2016-02-19 20:45:20 +0100
commit3bd95cca6ba614c6af77af4c33c09cc6b152729c (patch)
treecd6de7dcc1c5da164443cc6d5fcf8a90278d36bd /apps/dav/lib/server.php
parentc13259cf9e5a977485b842c36d04d352bbb4d61b (diff)
downloadnextcloud-server-3bd95cca6ba614c6af77af4c33c09cc6b152729c.tar.gz
nextcloud-server-3bd95cca6ba614c6af77af4c33c09cc6b152729c.zip
Check if user has permission to create such a tag
Fixes https://github.com/owncloud/core/issues/22512
Diffstat (limited to 'apps/dav/lib/server.php')
-rw-r--r--apps/dav/lib/server.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/dav/lib/server.php b/apps/dav/lib/server.php
index fd18d0d21ac..74be318fe5e 100644
--- a/apps/dav/lib/server.php
+++ b/apps/dav/lib/server.php
@@ -93,7 +93,11 @@ class Server {
$this->server->addPlugin(new \OCA\DAV\CardDAV\Plugin());
// system tags plugins
- $this->server->addPlugin(new \OCA\DAV\SystemTag\SystemTagPlugin(\OC::$server->getSystemTagManager()));
+ $this->server->addPlugin(new \OCA\DAV\SystemTag\SystemTagPlugin(
+ \OC::$server->getSystemTagManager(),
+ \OC::$server->getGroupManager(),
+ \OC::$server->getUserSession()
+ ));
// comments plugin
$this->server->addPlugin(new \OCA\DAV\Comments\CommentsPlugin(