25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Allow room member to get members list using XEP

This commit is contained in:
Badlop 2013-07-11 12:10:47 +02:00
parent 4e72dd6751
commit 0d7a5476c0

View File

@ -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};