Skip to content
Snippets Groups Projects
Commit 535757bc authored by Christian Seiler's avatar Christian Seiler
Browse files

DAV authentication: also use Owncloud's internal user for short-circuit

It still works otherwise, but without this, the performance optimization
of #13416 is defeated in these situations.
parent 1377ebc7
No related branches found
No related tags found
No related merge requests found
...@@ -52,7 +52,7 @@ class OC_Connector_Sabre_Auth extends \Sabre\DAV\Auth\Backend\AbstractBasic { ...@@ -52,7 +52,7 @@ class OC_Connector_Sabre_Auth extends \Sabre\DAV\Auth\Backend\AbstractBasic {
*/ */
protected function validateUserPass($username, $password) { protected function validateUserPass($username, $password) {
if (OC_User::isLoggedIn() && if (OC_User::isLoggedIn() &&
$this->isDavAuthenticated($username) $this->isDavAuthenticated(OC_User::getUser())
) { ) {
OC_Util::setupFS(OC_User::getUser()); OC_Util::setupFS(OC_User::getUser());
\OC::$server->getSession()->close(); \OC::$server->getSession()->close();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment