From b703b4f022bbf450c8c21a51efc943093c7081db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Mon, 6 Feb 2017 11:38:51 +0100 Subject: [PATCH] Don't shadow binding in match --- src/ejabberd_access_permissions.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ejabberd_access_permissions.erl b/src/ejabberd_access_permissions.erl index 260176130..f91c381b5 100644 --- a/src/ejabberd_access_permissions.erl +++ b/src/ejabberd_access_permissions.erl @@ -278,7 +278,7 @@ matches_definition({_Name, {From, Who, What}}, Cmd, Module, Host, CallerInfo) -> lists:any( fun({access, Access}) -> acl:access_matches(Access, CallerInfo, Host) == allow; - ({acl, Acl} = Acl) -> + ({acl, Acl}) -> acl:acl_rule_matches(Acl, CallerInfo, Host) end, List); _ ->