Don't overwrite the event if we use it later
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
3869c235de
commit
f14c0dec40
|
@ -122,8 +122,8 @@ class Server {
|
||||||
$event = new SabrePluginEvent($this->server);
|
$event = new SabrePluginEvent($this->server);
|
||||||
$dispatcher->dispatch('OCA\DAV\Connector\Sabre::authInit', $event);
|
$dispatcher->dispatch('OCA\DAV\Connector\Sabre::authInit', $event);
|
||||||
|
|
||||||
$event = new SabrePluginAuthInitEvent($this->server);
|
$newAuthEvent = new SabrePluginAuthInitEvent($this->server);
|
||||||
$newDispatcher->dispatchTyped($event);
|
$newDispatcher->dispatchTyped($newAuthEvent);
|
||||||
|
|
||||||
$bearerAuthBackend = new BearerAuth(
|
$bearerAuthBackend = new BearerAuth(
|
||||||
\OC::$server->getUserSession(),
|
\OC::$server->getUserSession(),
|
||||||
|
|
Loading…
Reference in New Issue