From 57c18fce9569f68822fb2814044d71ec99bf49e7 Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Sat, 12 Jul 2014 19:10:26 -0400 Subject: Make all admin checks use one table --- internal.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal.lua') diff --git a/internal.lua b/internal.lua index f032b1b..e06b99d 100644 --- a/internal.lua +++ b/internal.lua @@ -109,7 +109,7 @@ end -- Also checks the size of the area and if the user already -- has more than max_areas. function areas:canPlayerAddArea(pos1, pos2, name) - if minetest.check_player_privs(name, {areas=true}) then + if minetest.check_player_privs(name, self.adminPrivs) then return true end @@ -188,7 +188,7 @@ end -- Checks if a player owns an area or a parent of it function areas:isAreaOwner(id, name) local cur = self.areas[id] - if cur and minetest.check_player_privs(name, {areas=true}) then + if cur and minetest.check_player_privs(name, self.adminPrivs) then return true end while cur do -- cgit v1.2.3