diff --git a/packages/auth_server.lua b/packages/auth_server.lua index 5d118ba..073e432 100644 --- a/packages/auth_server.lua +++ b/packages/auth_server.lua @@ -199,7 +199,7 @@ while true do if not found then rednet.send(client_id, "invalid token", "auth") - elseif data.users[acting_user]["groups"] ~= nil or data.users[acting_user].groups["admin"] == nil then + elseif data.users[acting_user]["groups"] == nil or data.users[acting_user].groups["admin"] == nil then rednet.send(client_id, "invalid privileges", "auth") else if data.users[request.username].groups == nil then