From 0503c3499ee03bcb220416ac1162cafcf5b38bc4 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind1991@gmail.com>
Date: Sun, 31 Jul 2011 00:23:06 +0200
Subject: [PATCH] configure users/groups before loading apps

---
 lib/base.php | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/base.php b/lib/base.php
index 4fa38286be..8c550d74fb 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'));
 
-- 
GitLab