Merge pull request #8190 from HJianBo/fix-authz-setting-required
fix(authz): fix required not working for authz-cache
This commit is contained in:
commit
67063cd088
|
@ -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