From 0d7a5476c0f3221ed5a2939badd74aa1e7e29d69 Mon Sep 17 00:00:00 2001 From: Badlop Date: Thu, 11 Jul 2013 12:10:47 +0200 Subject: [PATCH] Allow room member to get members list using XEP --- src/mod_muc_room.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mod_muc_room.erl b/src/mod_muc_room.erl index 152737359..b1c5c92ff 100644 --- a/src/mod_muc_room.erl +++ b/src/mod_muc_room.erl @@ -2505,7 +2505,8 @@ process_iq_admin(From, get, Lang, SubEl, StateData) -> {'EXIT', _} -> {error, ?ERR_BAD_REQUEST}; SAffiliation -> if (FAffiliation == owner) or - (FAffiliation == admin) -> + (FAffiliation == admin) or + ((FAffiliation == member) and (SAffiliation == member)) -> Items = items_with_affiliation(SAffiliation, StateData), {result, Items, StateData};