summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorAnika Henke <anika@selfthinker.org>2013-11-09 20:07:14 +0000
committerAnika Henke <anika@selfthinker.org>2013-11-09 20:07:14 +0000
commitd2ea6dc1fd93e375f40ebb1d3792412d52ef9f73 (patch)
tree3e8dc4b9c5e997d4f72703cb3ea5da82e7b6540d /install.php
parent74850f2906bbb3935065d28e3e22ac131766d6f2 (diff)
downloadrpg-d2ea6dc1fd93e375f40ebb1d3792412d52ef9f73.tar.gz
rpg-d2ea6dc1fd93e375f40ebb1d3792412d52ef9f73.tar.bz2
changed how to approve users in installer ACL policy
Diffstat (limited to 'install.php')
-rw-r--r--install.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/install.php b/install.php
index fd006d566..4f09ccacb 100644
--- a/install.php
+++ b/install.php
@@ -357,6 +357,9 @@ EOT;
$output .= '$conf[\'useacl\'] = 1'.";\n";
$output .= "\$conf['superuser'] = '@admin';\n";
}
+ if($d['approve']){
+ $output .= '$conf[\'defaultgroup\'] = \'guest\''.";\n";
+ }
$ok = $ok && fileWrite(DOKU_LOCAL.'local.php',$output);
if ($d['acl']) {
@@ -366,7 +369,7 @@ EOT;
// create users.auth.php
// --- user:SMD5password:Real Name:email:groups,comma,seperated
- $output = join(":",array($d['superuser'], $pass, $d['fullname'], $d['email'], 'admin,'.$usergroup));
+ $output = join(":",array($d['superuser'], $pass, $d['fullname'], $d['email'], 'admin,user'));
$output = @file_get_contents(DOKU_CONF.'users.auth.php.dist')."\n$output\n";
$ok = $ok && fileWrite(DOKU_LOCAL.'users.auth.php', $output);
@@ -384,10 +387,10 @@ EOT;
EOT;
if($d['policy'] == 2){
$output .= "* @ALL 0\n";
- $output .= "* @".$usergroup." 8\n";
+ $output .= "* @user 8\n";
}elseif($d['policy'] == 1){
$output .= "* @ALL 1\n";
- $output .= "* @".$usergroup." 8\n";
+ $output .= "* @user 8\n";
}else{
$output .= "* @ALL 8\n";
}