aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-08-04 21:30:10 +0100
committerMatthew Wild <mwild1@gmail.com>2018-08-04 21:30:10 +0100
commit4fc4e76c83829ccf45594e48b354720f9b292c53 (patch)
treebfb27231a4bbe369b1634530b8d1166e99347047 /util
parentad2d64f657914b8c3fecbc0c70d4652b6b215cf9 (diff)
downloadprosody-4fc4e76c83829ccf45594e48b354720f9b292c53.tar.gz
prosody-4fc4e76c83829ccf45594e48b354720f9b292c53.zip
util.pubsub: Use service.node_defaults in case config.node_defaults was not provided (thanks jonasw)
Diffstat (limited to 'util')
-rw-r--r--util/pubsub.lua2
1 files changed, 1 insertions, 1 deletions
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";