The /admin/guard page, a Guardrails link, and the policies in force on the profile page

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ilker ManapandClaude Opus 5.5 committed 2026-10-04 15:15:38 +02:00
1 parent 7e18b8ab53
commit 02aac84ca5
11 files changed
+305 -3

No files matched your search

+3
View File
@@ -22,6 +22,8 @@ type Nav struct {
// Mirror and Quotas are whether those pages were mounted at all; usage is
// mounted with quotas.
Mirror, Quotas bool
// Guard is whether the guardrails page was mounted.
Guard bool
// CSRF signs the sign-out form.
CSRF string
// Org offers the organization page: to an administrator, and to anyone
@@ -38,6 +40,7 @@ func (p *AccountPages) navFor(r *http.Request, user store.User, current string)
Admin: user.IsAdmin,
Mirror: p.hasMirror,
Quotas: p.hasQuotas,
Guard: p.hasGuard,
CSRF: csrfFor(r),
}
// Only when there is an organization to show: a link that leads to "there