Check for group ownership in canInteract

This commit is contained in:
Cedric Haase 2017-12-17 13:42:16 +01:00
parent 81573975b5
commit b581c4b2a8
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ function areas:canInteract(pos, name)
end
local owned = false
for _, area in pairs(self:getAreasAtPos(pos)) do
if area.owner == name or area.open then
if area.owner == name or area.open or usergroups:user_is_in_group(name, area.group) then
return true
else
owned = true