View difference between Paste ID: EAsQf92P and z8krFNUq
SHOW: | | - or go back to the newest paste.
1
	local function check_player_priv(pos, player)
2
		if not def.only_placer_can_open then
3
			return true
4
		end
5
		local meta = minetest.get_meta(pos)
6
		local pn = player:get_player_name()
7
		if meta:get_string("doors_owner") == pn or 
8-
				minetest.is_protected(pos,name) then
8+
				not minetest.is_protected(pos,name) then
9
			return true
10
		else return false end
11
	end