diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-10-28 13:24:17 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-10-28 13:24:17 +0100 |
commit | c5e0ef19729c7c8836759d679ad6aee476a028ed (patch) | |
tree | d722a14a1ed67a8dee5332efa737b0aea0187491 /apps/dav/lib/Server.php | |
parent | 510b6533304b254e917d298fbe40a69c4a3f410d (diff) | |
download | nextcloud-server-c5e0ef19729c7c8836759d679ad6aee476a028ed.tar.gz nextcloud-server-c5e0ef19729c7c8836759d679ad6aee476a028ed.zip |
Don't overwrite the event if we use it later
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/dav/lib/Server.php')
-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(), |