mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +01:00
Don't shadow binding in match
This commit is contained in:
parent
f30c9d49f7
commit
b703b4f022
@ -278,7 +278,7 @@ matches_definition({_Name, {From, Who, What}}, Cmd, Module, Host, CallerInfo) ->
|
|||||||
lists:any(
|
lists:any(
|
||||||
fun({access, Access}) ->
|
fun({access, Access}) ->
|
||||||
acl:access_matches(Access, CallerInfo, Host) == allow;
|
acl:access_matches(Access, CallerInfo, Host) == allow;
|
||||||
({acl, Acl} = Acl) ->
|
({acl, Acl}) ->
|
||||||
acl:acl_rule_matches(Acl, CallerInfo, Host)
|
acl:acl_rule_matches(Acl, CallerInfo, Host)
|
||||||
end, List);
|
end, List);
|
||||||
_ ->
|
_ ->
|
||||||
|
Loading…
Reference in New Issue
Block a user