Don't overwrite the event if we use it later

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2020-10-28 13:24:17 +01:00 committed by backportbot[bot]
parent 3869c235de
commit f14c0dec40
1 changed files with 2 additions and 2 deletions

View File

@ -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(),