fix(emqx_authz): call matches with rules input

This commit is contained in:
Zaiming Shi 2021-08-30 01:11:16 +02:00 committed by turtleDeng
parent 84ed368d41
commit 77aca28d87
1 changed files with 1 additions and 1 deletions

View File

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