# HG changeset patch # User Kim Alvefur # Date 1439769533 -7200 # Node ID 4412a2307c890fcef4b26e961b9b1423a25ab10f # Parent 22c8deb43daf06bf024719dc575f8c1ddd986755 MUC: Fix logic error diff -r 22c8deb43daf -r 4412a2307c89 plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Tue Aug 11 10:29:25 2015 +0200 +++ b/plugins/muc/muc.lib.lua Mon Aug 17 01:58:53 2015 +0200 @@ -1146,7 +1146,7 @@ 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