summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-10-28 14:39:03 +0100
committerGitHub <noreply@github.com>2020-10-28 14:39:03 +0100
commit4ade7f12f263f9702fd801b483603c0005ff2d34 (patch)
treee81c426e275809c9feba9485a33748a9d848a22c
parentad3063a77be46f8c8d3487d375e4ba054633f626 (diff)
parentc5e0ef19729c7c8836759d679ad6aee476a028ed (diff)
downloadnextcloud-server-4ade7f12f263f9702fd801b483603c0005ff2d34.tar.gz
nextcloud-server-4ade7f12f263f9702fd801b483603c0005ff2d34.zip
Merge pull request #23750 from nextcloud/fix/sabre/authinitevent
Don't overwrite the event if we use it later
-rw-r--r--apps/dav/lib/Server.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/Server.php b/apps/dav/lib/Server.php
index 3dd54bd2fc0..9942216bd55 100644
--- a/apps/dav/lib/Server.php
+++ b/apps/dav/lib/Server.php
@@ -122,8 +122,8 @@ class Server {
$event = new SabrePluginEvent($this->server);
$dispatcher->dispatch('OCA\DAV\Connector\Sabre::authInit', $event);
- $event = new SabrePluginAuthInitEvent($this->server);
- $newDispatcher->dispatchTyped($event);
+ $newAuthEvent = new SabrePluginAuthInitEvent($this->server);
+ $newDispatcher->dispatchTyped($newAuthEvent);
$bearerAuthBackend = new BearerAuth(
\OC::$server->getUserSession(),