summaryrefslogtreecommitdiff
path: root/builtin/game/auth.lua
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/game/auth.lua')
-rw-r--r--builtin/game/auth.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin/game/auth.lua b/builtin/game/auth.lua
index 4d5178ba7..bf5bd19a8 100644
--- a/builtin/game/auth.lua
+++ b/builtin/game/auth.lua
@@ -83,7 +83,9 @@ core.builtin_auth_handler = {
-- For the admin, give everything
elseif name == core.settings:get("name") then
for priv, def in pairs(core.registered_privileges) do
- privileges[priv] = true
+ if def.give_to_admin then
+ privileges[priv] = true
+ end
end
end
-- All done