summaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorRobin <robin@Amaya.(none)>2010-04-23 00:21:59 +0200
committerRobin <robin@Amaya.(none)>2010-04-23 00:21:59 +0200
commit4fcc717d534f0d049addb363adc5d51e3b5a03f8 (patch)
treeffde2eee5cb3eb63aff2fe10901cb026b29ef6ef /inc
parent112a4b7e7352b7329b2544eb65b5600e6975bdc4 (diff)
downloadnextcloud-server-4fcc717d534f0d049addb363adc5d51e3b5a03f8.tar.gz
nextcloud-server-4fcc717d534f0d049addb363adc5d51e3b5a03f8.zip
bug fix first run wizzard take 2
Diffstat (limited to 'inc')
-rwxr-xr-xinc/lib_config.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/inc/lib_config.php b/inc/lib_config.php
index bbbe96e019e..bf9dd5fd3d8 100755
--- a/inc/lib_config.php
+++ b/inc/lib_config.php
@@ -106,7 +106,15 @@ class OC_CONFIG{
*/
public static function writeadminlisener(){
global $CONFIG_INSTALLED;
- if($CONFIG_INSTALLED==false or OC_USER::ingroup($_SESSION['username'],'admin')){
+ $allow=false;
+ if($CONFIG_INSTALLED==false){
+ $allow=true;
+ }elseif(OC_USER::isLoggedIn()){
+ if(OC_USER::ingroup($_SESSION['username'],'admin')){
+ $allow=true;
+ }
+ }
+ if($allow){
global $DOCUMENTROOT;
global $SERVERROOT;
global $WEBROOT;