summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-07-31 00:23:06 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-07-31 00:23:06 +0200
commit0503c3499ee03bcb220416ac1162cafcf5b38bc4 (patch)
tree126ef9c529cb30c26e08c55267e8bec4150c7dbd /lib
parentf8c560a35aa2cd4ee658a06b8fb5dcf7461bd132 (diff)
downloadnextcloud-server-0503c3499ee03bcb220416ac1162cafcf5b38bc4.tar.gz
nextcloud-server-0503c3499ee03bcb220416ac1162cafcf5b38bc4.zip
configure users/groups before loading apps
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/base.php b/lib/base.php
index 4fa38286bef..8c550d74fb8 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -88,15 +88,16 @@ if( !OC_Config::getValue( "installed", false )){
$_SESSION['user_id'] = '';
}
+
+OC_User::useBackend( OC_Config::getValue( "userbackend", "database" ));
+OC_Group::setBackend( OC_Config::getValue( "groupbackend", "database" ));
+
// Load Apps
// This includes plugins for users and filesystems as well
if(!$error and !$RUNTIME_NOAPPS ){
OC_App::loadApps();
}
-OC_User::useBackend( OC_Config::getValue( "userbackend", "database" ));
-OC_Group::setBackend( OC_Config::getValue( "groupbackend", "database" ));
-
// Was in required file ... put it here
OC_Filesystem::registerStorageType('local','OC_Filestorage_Local',array('datadir'=>'string'));