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:
@@ -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.');
|
||||
|
||||
Reference in New Issue
Block a user