Hardcoded constants strike again... Changing the setup code to let the first administrator have the rights to let other people be administrators.

git-svn-id: svn://10.0.0.236/trunk@120808 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ian%hixie.ch
2002-05-06 03:10:50 +00:00
parent 3c41b1b999
commit a1a5159f19

View File

@@ -326,8 +326,8 @@ sub setupInstall {
$app->output($contact, $user)->loginDetails($address, $password);
}
# add the user to group 1 as an administrator (so he's an administrator of administrators)
$user->joinGroup(1, 2); # XXX HARDCODED CONSTANT ALERT
# add the user to group 1 as an owner (so he's the owner of administrators)
$user->joinGroup(1, 3); # XXX HARDCODED CONSTANT ALERT
# add an adminMessage to the user
$user->adminMessage('Logged in with administrative privileges, please be careful.');