aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-08-17 01:58:53 +0200
committerKim Alvefur <zash@zash.se>2015-08-17 01:58:53 +0200
commitf1313996a2db339fe76f269353cc911c68316f30 (patch)
tree546329968bd3e8772fe0883908259aaad9b8c59e /plugins/muc
parent258f8fd4b40ab68d7d5731097fcb0b1c9ec21dcd (diff)
downloadprosody-f1313996a2db339fe76f269353cc911c68316f30.tar.gz
prosody-f1313996a2db339fe76f269353cc911c68316f30.zip
MUC: Fix logic error
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 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