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:
parent
0c60718bef
commit
109ed1a8b1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user