fix(authz): use binary() type instead of string() for cache.excludes
This commit is contained in:
parent
6d6242c27a
commit
85b6a3454c
|
@ -56,7 +56,7 @@ drain_k() -> {?MODULE, drain_timestamp}.
|
|||
-spec is_enabled(emqx_types:topic()) -> boolean().
|
||||
is_enabled(Topic) ->
|
||||
case emqx:get_config([authorization, cache]) of
|
||||
#{enable := true, excludes := Filters} ->
|
||||
#{enable := true, excludes := Filters} when Filters =/= [] ->
|
||||
not is_excluded(Topic, Filters);
|
||||
#{enable := IsEnabled} ->
|
||||
IsEnabled
|
||||
|
|
|
@ -468,7 +468,7 @@ fields(authz_cache) ->
|
|||
}
|
||||
)},
|
||||
{excludes,
|
||||
sc(hoconsc:array(string()), #{
|
||||
sc(hoconsc:array(binary()), #{
|
||||
default => [],
|
||||
desc => ?DESC(fields_authz_cache_excludes)
|
||||
})}
|
||||
|
|
Loading…
Reference in New Issue