chore(authz): make `authorization.cache.enable` required

This commit is contained in:
JianBo He 2022-06-15 13:46:17 +08:00
parent ec840222cd
commit 03967a83de
2 changed files with 1 additions and 1 deletions

View File

@ -344,6 +344,7 @@ fields("cache") ->
boolean(), boolean(),
#{ #{
default => true, default => true,
required => true,
desc => ?DESC(fields_cache_enable) desc => ?DESC(fields_cache_enable)
} }
)}, )},

View File

@ -80,7 +80,6 @@ settings(put, #{
[authorization, deny_action], DenyAction [authorization, deny_action], DenyAction
), ),
{ok, _} = emqx_authz_utils:update_config([authorization, cache], Cache), {ok, _} = emqx_authz_utils:update_config([authorization, cache], Cache),
ok = emqx_authz_cache:drain_cache(),
{200, authorization_settings()}. {200, authorization_settings()}.
authorization_settings() -> authorization_settings() ->