File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
apps/dav/lib/Connector/Sabre Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public function __construct(
1919 }
2020
2121 public function initialize (\Sabre \DAV \Server $ server ): void {
22- $ server ->on ('afterMethod :* ' , [$ this , 'afterMethod ' ]);
22+ $ server ->on ('beforeMethod :* ' , [$ this , 'beforeMethod ' ]);
2323 }
2424
2525 /**
@@ -28,7 +28,7 @@ public function initialize(\Sabre\DAV\Server $server): void {
2828 * @param RequestInterface $request request
2929 * @param ResponseInterface $response response
3030 */
31- public function afterMethod (RequestInterface $ request , ResponseInterface $ response ): void {
31+ public function beforeMethod (RequestInterface $ request , ResponseInterface $ response ): void {
3232 if ($ user = $ this ->userSession ->getUser ()) {
3333 $ response ->setHeader ('X-User-Id ' , $ user ->getUID ());
3434 }
You can’t perform that action at this time.
0 commit comments