]> source.dussan.org Git - nextcloud-server.git/commitdiff
always mount the root filesystem, sometimes we need the filesystem when not logged in
authorRobin Appelman <icewind@owncloud.com>
Sun, 5 Feb 2012 20:45:41 +0000 (21:45 +0100)
committerRobin Appelman <icewind@owncloud.com>
Tue, 21 Feb 2012 19:48:48 +0000 (20:48 +0100)
lib/util.php

index 1b1e29b674980f89133f81ca1006160591640184..3329789de92e61f53667c9124df49e657a72e520 100644 (file)
@@ -35,9 +35,9 @@ class OC_Util {
                        $user = OC_User::getUser();
                }
 
+               //first set up the local "root" storage
+               OC_Filesystem::mount('OC_Filestorage_Local',array('datadir'=>$CONFIG_DATADIRECTORY_ROOT),'/');
                if( $user != "" ){ //if we aren't logged in, there is no use to set up the filesystem
-                       //first set up the local "root" storage
-                       OC_Filesystem::mount('OC_Filestorage_Local',array('datadir'=>$CONFIG_DATADIRECTORY_ROOT),'/');
 
                        OC::$CONFIG_DATADIRECTORY = $CONFIG_DATADIRECTORY_ROOT."/$user/$root";
                        if( !is_dir( OC::$CONFIG_DATADIRECTORY )){