chore(authz): make `authorization.cache.enable` required
This commit is contained in:
parent
ec840222cd
commit
03967a83de
|
@ -344,6 +344,7 @@ fields("cache") ->
|
|||
boolean(),
|
||||
#{
|
||||
default => true,
|
||||
required => true,
|
||||
desc => ?DESC(fields_cache_enable)
|
||||
}
|
||||
)},
|
||||
|
|
|
@ -80,7 +80,6 @@ settings(put, #{
|
|||
[authorization, deny_action], DenyAction
|
||||
),
|
||||
{ok, _} = emqx_authz_utils:update_config([authorization, cache], Cache),
|
||||
ok = emqx_authz_cache:drain_cache(),
|
||||
{200, authorization_settings()}.
|
||||
|
||||
authorization_settings() ->
|
||||
|
|
Loading…
Reference in New Issue