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:
parent
de91618070
commit
910f6aa290
@ -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).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user