forked from Adleraci/adlerka.top
make it more consistent
This commit is contained in:
parent
2275d1623a
commit
79ebf9f49f
@ -296,7 +296,7 @@ function addActivationCodes($count): array
|
||||
|
||||
$output = ["Status" => "Fail"]; // Default Status is "Fail"
|
||||
|
||||
if (is_numeric($count) && $count > 0 && $_SESSION["privilege_level"] >= $routerConfig["user_admin_permission_level"] && isLoggedIn()) {
|
||||
if (is_numeric($count) && $count > 0 && isUserAdmin() && isLoggedIn()) {
|
||||
$stmt = $mysqli->prepare("INSERT INTO Users (ActivationToken, CreatedAt, CreatedBy) VALUES (?, NOW(), ?)");
|
||||
|
||||
for ($i = 0; $i < $count; $i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user