Commit 8a062ba
committed
fix(ui): gated toggle reads addon-config flag, not Policy.enabled (#966)
The per-tool 'security gated' toggle was grayed out even when the user
had enable_tool_security_policies turned ON in the addon config + the
Server Settings tab toggle, because the JS was reading Policy.enabled
(the file field) instead of the addon-config feature flag — which is
the single source of truth for whether the middleware is active.
loadPolicyState now reads enable_tool_security_policies from
/api/settings/features (same place renderFeatureFlags consumes from).1 parent d093f67 commit 8a062ba
1 file changed
Lines changed: 18 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
956 | 956 | | |
957 | 957 | | |
958 | 958 | | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
959 | 977 | | |
960 | 978 | | |
961 | 979 | | |
962 | | - | |
963 | 980 | | |
964 | 981 | | |
965 | 982 | | |
966 | 983 | | |
967 | | - | |
968 | 984 | | |
969 | 985 | | |
970 | 986 | | |
971 | | - | |
972 | 987 | | |
973 | 988 | | |
974 | 989 | | |
| |||
0 commit comments