diff --git a/apps/emqx_authz/src/emqx_authz.erl b/apps/emqx_authz/src/emqx_authz.erl index 21e5ceb87..3a39a2984 100644 --- a/apps/emqx_authz/src/emqx_authz.erl +++ b/apps/emqx_authz/src/emqx_authz.erl @@ -311,7 +311,7 @@ do_authorize(Client, PubSub, Topic, [#{enable := false} | Rest]) -> do_authorize(Client, PubSub, Topic, Rest); do_authorize(Client, PubSub, Topic, [#{type := file} = F | Tail]) -> #{annotations := #{rules := Rules}} = F, - case emqx_authz_rule:match(Client, PubSub, Topic, Rules) of + case emqx_authz_rule:matches(Client, PubSub, Topic, Rules) of nomatch -> do_authorize(Client, PubSub, Topic, Tail); Matched -> Matched end;