mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
Revert "Affiliations other than admin and owner cannot invite to members_only rooms"
This reverts commit b010a1a0a0
.
More details in #2987
This commit is contained in:
parent
a157e22c2f
commit
0bb14bdc0b
@ -4410,8 +4410,7 @@ send_voice_request(From, Lang, StateData) ->
|
||||
ok | {error, stanza_error()}.
|
||||
check_invitation(From, Invitations, Lang, StateData) ->
|
||||
FAffiliation = get_affiliation(From, StateData),
|
||||
CanInvite = ((StateData#state.config)#config.allow_user_invites
|
||||
and not (StateData#state.config)#config.members_only) orelse
|
||||
CanInvite = (StateData#state.config)#config.allow_user_invites orelse
|
||||
FAffiliation == admin orelse FAffiliation == owner,
|
||||
case CanInvite of
|
||||
true ->
|
||||
|
Loading…
Reference in New Issue
Block a user