diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-08-04 21:30:10 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-08-04 21:30:10 +0100 |
commit | 4fc4e76c83829ccf45594e48b354720f9b292c53 (patch) | |
tree | bfb27231a4bbe369b1634530b8d1166e99347047 | |
parent | ad2d64f657914b8c3fecbc0c70d4652b6b215cf9 (diff) | |
download | prosody-4fc4e76c83829ccf45594e48b354720f9b292c53.tar.gz prosody-4fc4e76c83829ccf45594e48b354720f9b292c53.zip |
util.pubsub: Use service.node_defaults in case config.node_defaults was not provided (thanks jonasw)
-rw-r--r-- | util/pubsub.lua | 2 |
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"; |