mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-24 17:29:28 +01:00
Fix previous commit
This commit is contained in:
parent
de91618070
commit
910f6aa290
@ -116,8 +116,10 @@ process_iq(#iq{from = From, to = To} = IQ, Source) ->
|
||||
Access = mod_register_opt:access_remove(Server),
|
||||
Remove = case acl:match_rule(Server, Access, From) of
|
||||
deny -> deny;
|
||||
allow when From#jid.lserver /= Server ->
|
||||
deny;
|
||||
allow ->
|
||||
check_access(From#jid.luser, From#jid.lserver, Source)
|
||||
check_access(From#jid.luser, Server, Source)
|
||||
end,
|
||||
process_iq(IQ, Source, IsCaptchaEnabled, Remove == allow).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user