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.
remotes/origin/log-external-deletes
Christian Seiler 2015-02-16 23:47:39 +07:00
parent 1377ebc7e9
commit 535757bc42
1 changed files with 1 additions and 1 deletions

@ -52,7 +52,7 @@ class OC_Connector_Sabre_Auth extends \Sabre\DAV\Auth\Backend\AbstractBasic {
*/
protected function validateUserPass($username, $password) {
if (OC_User::isLoggedIn() &&
$this->isDavAuthenticated($username)
$this->isDavAuthenticated(OC_User::getUser())
) {
OC_Util::setupFS(OC_User::getUser());
\OC::$server->getSession()->close();