]> source.dussan.org Git - nextcloud-server.git/commitdiff
file system is now initialized with apache authentication as well
authorThomas Müller <thomas.mueller@tmit.eu>
Mon, 14 Oct 2013 12:46:43 +0000 (14:46 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Mon, 14 Oct 2013 12:46:43 +0000 (14:46 +0200)
lib/private/connector/sabre/auth.php

index d2fd74c44f9f2a00f53610ad316d2ecc28379a6f..5491d376316f0b09b978ccccc293b3de0e3c2b91 100644 (file)
@@ -73,15 +73,11 @@ class OC_Connector_Sabre_Auth extends Sabre_DAV_Auth_Backend_AbstractBasic {
          */
        public function authenticate(Sabre_DAV_Server $server, $realm) {
 
-               if (OC_User::handleApacheAuth()) {
-                   return true;
-               }
-
-               if (OC_User::isLoggedIn()) {
+               if (OC_User::handleApacheAuth() || OC_User::isLoggedIn()) {
                        $user = OC_User::getUser();
                        OC_Util::setupFS($user);
                        $this->currentUser = $user;
-                       return true;
+                   return true;
                }
 
                return parent::authenticate($server, $realm);