diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-10-28 14:39:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-28 14:39:03 +0100 |
commit | 4ade7f12f263f9702fd801b483603c0005ff2d34 (patch) | |
tree | e81c426e275809c9feba9485a33748a9d848a22c | |
parent | ad3063a77be46f8c8d3487d375e4ba054633f626 (diff) | |
parent | c5e0ef19729c7c8836759d679ad6aee476a028ed (diff) | |
download | nextcloud-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.php | 4 |
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(), |