mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Do not grant all privs to the admin - changes game behavior (#6460)
* Do not grant all privs to admins. * Default give_to_admin to give_to_singleplayer
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user