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 | 62fd30552e3edb6205ff748e2a87f1c54f54f88f (patch) | |
tree | bfb27231a4bbe369b1634530b8d1166e99347047 | |
parent | 5a4e252a6ce14abba2da8bb7ac5c23b0a369d2cb (diff) | |
download | prosody-62fd30552e3edb6205ff748e2a87f1c54f54f88f.tar.gz prosody-62fd30552e3edb6205ff748e2a87f1c54f54f88f.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"; |