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(),
|
boolean(),
|
||||||
#{
|
#{
|
||||||
default => true,
|
default => true,
|
||||||
|
required => true,
|
||||||
desc => ?DESC(fields_cache_enable)
|
desc => ?DESC(fields_cache_enable)
|
||||||
}
|
}
|
||||||
)},
|
)},
|
||||||
|
|
|
@ -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() ->
|
||||||
|
|
Loading…
Reference in New Issue