25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

Fix previous commit

This commit is contained in:
Evgeny Khramtsov 2019-11-24 16:26:03 +03:00
parent de91618070
commit 910f6aa290

View File

@ -116,8 +116,10 @@ process_iq(#iq{from = From, to = To} = IQ, Source) ->
Access = mod_register_opt:access_remove(Server), Access = mod_register_opt:access_remove(Server),
Remove = case acl:match_rule(Server, Access, From) of Remove = case acl:match_rule(Server, Access, From) of
deny -> deny; deny -> deny;
allow when From#jid.lserver /= Server ->
deny;
allow -> allow ->
check_access(From#jid.luser, From#jid.lserver, Source) check_access(From#jid.luser, Server, Source)
end, end,
process_iq(IQ, Source, IsCaptchaEnabled, Remove == allow). process_iq(IQ, Source, IsCaptchaEnabled, Remove == allow).