Make all admin checks use one table

This commit is contained in:
ShadowNinja
2014-07-12 19:10:26 -04:00
parent 65013863b2
commit 57c18fce95
3 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@ minetest.register_chatcommand("legacy_load_areas", {
params = "<version>",
description = "Loads, converts, and saves the areas from"
.." a legacy save file.",
privs = {areas=true, server=true, privs=true},
privs = {areas=true, server=true},
func = function(name, param)
minetest.chat_send_player(name, "Converting areas...")
local version = tonumber(param)
@ -86,7 +86,7 @@ end
-- Checks if a node is owned by you
function areas.isNodeOwner(pos, name)
if minetest.check_player_privs(name, {areas=true}) then
if minetest.check_player_privs(name, areas.adminPrivs) then
return true
end
for id, area in pairs(areas:getAreasAtPos(pos)) do