Skip to content
Snippets Groups Projects
Commit 4fcc717d authored by Robin Appelman's avatar Robin Appelman
Browse files

bug fix first run wizzard take 2

parent 112a4b7e
Branches
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment