use username, not passed loginname, might differ

This commit is contained in:
Arthur Schiwon 2012-12-13 01:30:25 +01:00
parent 6d7ae463df
commit 4466e06e7d

View file

@ -32,7 +32,7 @@ class OC_Connector_Sabre_Auth extends Sabre_DAV_Auth_Backend_AbstractBasic {
*/
protected function validateUserPass($username, $password) {
if (OC_User::isLoggedIn()) {
OC_Util::setupFS($username);
OC_Util::setupFS(OC_User::getUser());
return true;
} else {
OC_Util::setUpFS();//login hooks may need early access to the filesystem