mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-05-06 02:53:40 +02:00
remove anonymous option handling
this was moved to core Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
e123a8b984
commit
b7cab9d740
|
@ -63,15 +63,5 @@ class DavPlugin extends ServerPlugin {
|
||||||
$this->session->set('user_saml.samlUserData', $this->auth);
|
$this->session->set('user_saml.samlUserData', $this->auth);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($request->getMethod() === 'OPTIONS' && $request->getPath() === '') {
|
|
||||||
/** @var CorePlugin $corePlugin */
|
|
||||||
$corePlugin = $this->server->getPlugin('core');
|
|
||||||
// setup a fake tree for anonymous access
|
|
||||||
$this->server->tree = new Tree(new Directory(''));
|
|
||||||
$corePlugin->httpOptions($request, $response);
|
|
||||||
$this->server->sapi->sendResponse($response);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue