]> source.dussan.org Git - nextcloud-server.git/commitdiff
allow additional Sabre plugins in publicwebdav.php
authorJulien Veyssier <julien-nc@posteo.net>
Tue, 6 Dec 2022 13:03:36 +0000 (14:03 +0100)
committerJulien Veyssier <julien-nc@posteo.net>
Mon, 12 Dec 2022 12:56:40 +0000 (13:56 +0100)
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
apps/dav/appinfo/v1/publicwebdav.php

index 409fbbcf4a717ca5f87fa7faf9d8dc36b7c67797..5acea04b1eaa36249cf120c5f6e5ca5b664addf9 100644 (file)
@@ -111,6 +111,9 @@ $server = $serverFactory->createServer($baseuri, $requestUri, $authPlugin, funct
 
 $server->addPlugin($linkCheckPlugin);
 $server->addPlugin($filesDropPlugin);
+// allow setup of additional plugins
+$event = new \OCP\SabrePluginEvent($server);
+\OC::$server->getEventDispatcher()->dispatch('OCA\DAV\Connector\Sabre::addPublicPlugin', $event);
 
 // And off we go!
 $server->exec();