From 4fc4e76c83829ccf45594e48b354720f9b292c53 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 4 Aug 2018 21:30:10 +0100 Subject: util.pubsub: Use service.node_defaults in case config.node_defaults was not provided (thanks jonasw) --- util/pubsub.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/pubsub.lua') diff --git a/util/pubsub.lua b/util/pubsub.lua index 5160b0ce..b124b115 100644 --- a/util/pubsub.lua +++ b/util/pubsub.lua @@ -114,7 +114,7 @@ end function service:get_default_affiliation(node, actor, action) -- luacheck: ignore 212 local node_obj = self.nodes[node]; local access_model = node_obj and node_obj.config.access_model - or self.config.node_defaults.access_model; + or self.node_defaults.access_model; if access_model == "open" then return "none"; -- cgit v1.2.3