mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Fix muc tests
This commit is contained in:
parent
14871c54ac
commit
7da033f733
@ -939,11 +939,10 @@ process_groupchat_message(#message{from = From, lang = Lang} = Packet, StateData
|
||||
of
|
||||
true ->
|
||||
{FromNick, Role} = get_participant_data(From, StateData),
|
||||
#config{members_by_default = MBD,
|
||||
moderated = Moderated} = StateData#state.config,
|
||||
#config{moderated = Moderated} = StateData#state.config,
|
||||
AllowedByModerationRules =
|
||||
case {Role == moderator orelse Role == participant orelse
|
||||
not Moderated orelse MBD, IsSubscriber} of
|
||||
not Moderated, IsSubscriber} of
|
||||
{true, _} -> true;
|
||||
{_, true} ->
|
||||
case get_default_role(get_affiliation(From, StateData),
|
||||
|
Loading…
Reference in New Issue
Block a user