mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Allow room member to get members list using XEP
This commit is contained in:
parent
4e72dd6751
commit
0d7a5476c0
@ -2505,7 +2505,8 @@ process_iq_admin(From, get, Lang, SubEl, StateData) ->
|
|||||||
{'EXIT', _} -> {error, ?ERR_BAD_REQUEST};
|
{'EXIT', _} -> {error, ?ERR_BAD_REQUEST};
|
||||||
SAffiliation ->
|
SAffiliation ->
|
||||||
if (FAffiliation == owner) or
|
if (FAffiliation == owner) or
|
||||||
(FAffiliation == admin) ->
|
(FAffiliation == admin) or
|
||||||
|
((FAffiliation == member) and (SAffiliation == member)) ->
|
||||||
Items = items_with_affiliation(SAffiliation,
|
Items = items_with_affiliation(SAffiliation,
|
||||||
StateData),
|
StateData),
|
||||||
{result, Items, StateData};
|
{result, Items, StateData};
|
||||||
|
Loading…
Reference in New Issue
Block a user