fix(exhook): `client.authorize` hook always uses real-topic

See: emqx_channel:do_check_sub_authzs/3, line: 1895
This commit is contained in:
JimMoen 2023-12-10 22:21:42 +08:00
parent cfe3b2dcee
commit 47901c9fed
No known key found for this signature in database
GPG Key ID: 87A520B4F76BA86D
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ on_client_authorize(ClientInfo, Action, Topic, Result) ->
Req = #{
clientinfo => clientinfo(ClientInfo),
type => Type,
topic => emqx_topic:maybe_format_share(Topic),
topic => emqx_topic:get_shared_real_topic(Topic),
result => Bool
},
case