aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-07-23 17:13:06 +0200
committerKim Alvefur <zash@zash.se>2021-07-23 17:13:06 +0200
commita399b1caed59abe4aa5a3c83656b2765cc478914 (patch)
tree60bf792cb10423b604ee857597534d1942212332 /plugins/muc
parent20d3403a84f1fe42f6dfcc1bbe80ede8432e8f85 (diff)
parent00735e47597c877f16bdbcd57a7746568e881c99 (diff)
downloadprosody-a399b1caed59abe4aa5a3c83656b2765cc478914.tar.gz
prosody-a399b1caed59abe4aa5a3c83656b2765cc478914.zip
Merge 0.11->trunk
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/muc.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index f34b579c..f4d06529 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -1110,7 +1110,7 @@ function room_mt:handle_admin_query_get_command(origin, stanza)
-- e.g. an admin can't ask for a list of owners
local affiliation_rank = valid_affiliations[affiliation or "none"];
if (affiliation_rank >= valid_affiliations.admin and affiliation_rank >= _aff_rank)
- or (self:get_whois() == "anyone") then
+ or (self:get_members_only() and self:get_whois() == "anyone" and affiliation_rank >= valid_affiliations.member) then
local reply = st.reply(stanza):query("http://jabber.org/protocol/muc#admin");
for jid in self:each_affiliation(_aff or "none") do
local nick = self:get_registered_nick(jid);