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.
This commit is contained in:
Christian Seiler 2015-02-16 23:47:39 +01:00
parent 1377ebc7e9
commit 535757bc42
1 changed files with 1 additions and 1 deletions

View File

@ -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();