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
1 changed files with 1 additions and 0 deletions

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;