summaryrefslogtreecommitdiff
path: root/internal.lua
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2014-07-12 19:10:26 -0400
committerShadowNinja <shadowninja@minetest.net>2014-07-12 19:10:26 -0400
commit57c18fce9569f68822fb2814044d71ec99bf49e7 (patch)
tree81d8e8e63057c7a9f74c5c3da09b87abe6e80bda /internal.lua
parent65013863b2ae1205f08000c83bdc3b6c8fab5627 (diff)
Make all admin checks use one table
Diffstat (limited to 'internal.lua')
-rw-r--r--internal.lua4
1 files changed, 2 insertions, 2 deletions
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