mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Make subscribers members by default
This commit is contained in:
parent
d91812730b
commit
4e7aa41e3f
@ -1022,12 +1022,8 @@ process_groupchat_message(#message{from = From, lang = Lang} = Packet, StateData
|
||||
not Moderated, IsSubscriber} of
|
||||
{true, _} -> true;
|
||||
{_, true} ->
|
||||
case get_default_role(get_affiliation(From, StateData),
|
||||
StateData) of
|
||||
moderator -> true;
|
||||
participant -> true;
|
||||
_ -> false
|
||||
end;
|
||||
% We assume all subscribers are at least members
|
||||
true;
|
||||
_ ->
|
||||
false
|
||||
end,
|
||||
|
Loading…
Reference in New Issue
Block a user