fix setting account_roles for admin account
This commit is contained in:
parent
d20a0cb6ab
commit
20d5985c0a
@ -130,7 +130,7 @@ function create_account($arr) {
|
|||||||
// allow the admin_email account to be admin, but only if it's the first account.
|
// allow the admin_email account to be admin, but only if it's the first account.
|
||||||
|
|
||||||
$c = account_total();
|
$c = account_total();
|
||||||
if((c === 0) && (check_account_admin($arr)))
|
if(($c === 0) && (check_account_admin($arr)))
|
||||||
$roles |= ACCOUNT_ROLE_ADMIN;
|
$roles |= ACCOUNT_ROLE_ADMIN;
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user