25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

According to XEP-0045, a MUC member is allowed to retrieve the members list

This commit is contained in:
Badlop 2013-06-21 11:43:23 +02:00
parent 0c60718bef
commit 109ed1a8b1

View File

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