diff options
author | Kim Alvefur <zash@zash.se> | 2015-08-17 01:58:53 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-08-17 01:58:53 +0200 |
commit | f1313996a2db339fe76f269353cc911c68316f30 (patch) | |
tree | 546329968bd3e8772fe0883908259aaad9b8c59e /plugins/muc | |
parent | 258f8fd4b40ab68d7d5731097fcb0b1c9ec21dcd (diff) | |
download | prosody-f1313996a2db339fe76f269353cc911c68316f30.tar.gz prosody-f1313996a2db339fe76f269353cc911c68316f30.zip |
MUC: Fix logic error
Diffstat (limited to 'plugins/muc')
-rw-r--r-- | plugins/muc/muc.lib.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 63204d66..deb9ee25 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -1146,7 +1146,7 @@ function room_mt:set_role(actor, occupant_jid, role, reason) else -- Can't do anything to other owners or admins local occupant_affiliation = self:get_affiliation(occupant.bare_jid); - if occupant_affiliation == "owner" and occupant_affiliation == "admin" then + if occupant_affiliation == "owner" or occupant_affiliation == "admin" then return nil, "cancel", "not-allowed"; end |