iteration
This commit is contained in:
parent
9ce61897d4
commit
b4d9af64d0
@ -78,7 +78,8 @@ while true do
|
|||||||
}
|
}
|
||||||
|
|
||||||
-- if only user in database, add to admin group
|
-- if only user in database, add to admin group
|
||||||
if table.getn(data.users) == 2 then
|
log(table.getn(data.users))
|
||||||
|
if table.getn(data.users) == 0 then
|
||||||
log("Adding " .. request.username .. " to admin group")
|
log("Adding " .. request.username .. " to admin group")
|
||||||
data.users[request.username].groups = {}
|
data.users[request.username].groups = {}
|
||||||
data.users[request.username].groups["admin"] = true
|
data.users[request.username].groups["admin"] = true
|
||||||
|
Loading…
Reference in New Issue
Block a user