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:
parent
1377ebc7e9
commit
535757bc42
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue