25
1
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:
Paweł Chmielowski 2017-02-06 11:38:51 +01:00
parent f30c9d49f7
commit b703b4f022

View File

@ -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);
_ -> _ ->