diff options
-rw-r--r-- | apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php | 2 | ||||
-rw-r--r-- | apps/dav/lib/Connector/Sabre/LockPlugin.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php b/apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php index b693b50f8e3..63e57735972 100644 --- a/apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php +++ b/apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php @@ -75,7 +75,7 @@ class AnonymousOptionsPlugin extends ServerPlugin { // setup a fake tree for anonymous access $this->server->tree = new Tree(new Directory('')); $corePlugin->httpOptions($request, $response); - $this->server->emit('afterMethod', [$request, $response]); + $this->server->emit('afterMethod:*', [$request, $response]); $this->server->emit('afterMethod:OPTIONS', [$request, $response]); $this->server->sapi->sendResponse($response); diff --git a/apps/dav/lib/Connector/Sabre/LockPlugin.php b/apps/dav/lib/Connector/Sabre/LockPlugin.php index a8e3818c5c9..7c07f45fc79 100644 --- a/apps/dav/lib/Connector/Sabre/LockPlugin.php +++ b/apps/dav/lib/Connector/Sabre/LockPlugin.php @@ -47,7 +47,7 @@ class LockPlugin extends ServerPlugin { public function initialize(\Sabre\DAV\Server $server) { $this->server = $server; $this->server->on('beforeMethod:*', [$this, 'getLock'], 50); - $this->server->on('afterMethod', [$this, 'releaseLock'], 50); + $this->server->on('afterMethod:*', [$this, 'releaseLock'], 50); } public function getLock(RequestInterface $request) { |