From 6a55e150aff0a6f77ed3104add013c03e810043c Mon Sep 17 00:00:00 2001
From: Thomas--S <Thomas--S@users.noreply.github.com>
Date: Sat, 18 Mar 2017 17:19:19 +0100
Subject: [PATCH] Doors: Fix wood/glass doors not opening or closing

Some code was lost during a rebase of a recently merged commit (73e4666).
---
 mods/default/functions.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mods/default/functions.lua b/mods/default/functions.lua
index bf3749a..8e9132d 100644
--- a/mods/default/functions.lua
+++ b/mods/default/functions.lua
@@ -550,9 +550,9 @@ function default.can_interact_with_node(player, pos)
 	end
 
 	local meta = minetest.get_meta(pos)
+	local owner = meta:get_string("owner")
 
-	if player:get_player_name() == meta:get_string("owner") then
-		-- Owner can access the node to any time
+	if not owner or owner == "" or owner == player:get_player_name() then
 		return true
 	end