From f1313996a2db339fe76f269353cc911c68316f30 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 17 Aug 2015 01:58:53 +0200 Subject: MUC: Fix logic error --- plugins/muc/muc.lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/muc/muc.lib.lua') 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 -- cgit v1.2.3