From 109ed1a8b1c83752d0dea64feb1d5e466215604a Mon Sep 17 00:00:00 2001 From: Badlop Date: Fri, 21 Jun 2013 11:43:23 +0200 Subject: [PATCH] According to XEP-0045, a MUC member is allowed to retrieve the members list --- src/mod_muc_room.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mod_muc_room.erl b/src/mod_muc_room.erl index 05a6ec4c0..ef1931780 100644 --- a/src/mod_muc_room.erl +++ b/src/mod_muc_room.erl @@ -1140,6 +1140,7 @@ is_occupant_or_admin(JID, StateData) -> FAffiliation = get_affiliation(JID, StateData), FRole = get_role(JID, StateData), case FRole /= none orelse + FAffiliation == member orelse FAffiliation == admin orelse FAffiliation == owner of true -> true;