Files
gpustack-ui/src/pages/llmodels
gitlawrandjialin df53774628 feat: access-control seam exposes prepended policies + create default
The OSS access-control form currently lets a plugin replace the
`allowed_users` policy entry. Multi-tenancy also wants:
- an extra radio option for "Org-scoped" sitting in front of the
  built-ins, and
- a context-sensitive create-time default (routes inside a non-
  platform Org should land on the Org-scoped policy rather than
  `authed`).

Extend the `accessControl` slot with two more hooks:
- `prependedPolicies?: { policyValue, labelId, tipsId?, Field? }[]`
  — entries prepended to the radio group; each may carry an
  optional content `Field` rendered when selected.
- `resolveCreateDefault?: () => string | undefined` — overrides the
  initial `access_policy` for the create flow; the OSS fallback is
  still `authed`.

The host's tooltip list mirrors the same order. Existing behaviour
without a plugin is unchanged.
2026-05-11 19:30:21 +08:00
..
2026-03-19 12:28:18 +08:00
2026-05-06 14:43:03 +08:00
2026-05-06 12:27:22 +08:00
2026-04-28 14:41:36 +08:00
2026-04-08 18:54:06 +08:00
2026-03-26 18:20:55 +08:00
2026-04-24 14:28:30 +08:00
2026-04-24 14:28:30 +08:00