Fix policy form roles; add JSON edit mode

- Replace stale "service" role option with correct set:
  admin, user, guest, viewer, editor, commenter (matches model.go)
- Add Form/JSON tab toggle to policy create form
- JSON tab accepts raw RuleBody JSON with description/priority
- Handler detects rule_json field and parses/validates it
  directly, falling back to field-by-field form mode otherwise
This commit is contained in:
Claude Opus 4.6
2026-03-16 15:25:51 -07:00
committed by kyle
parent 7db560dae4
commit 19fa0c9a8e
7 changed files with 421 additions and 149 deletions
+1 -1
View File
@@ -1 +1 @@
[{"lang":"en","usageCount":3}]
[{"lang":"en","usageCount":7}]