Staff roles (viewer, operator, billing) and the console's Audit view

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 16:30:56 +02:00
1 parent f8fcecd640
commit b60cf45adf
19 files changed
+352 -24

No files matched your search

+1 -1
View File
@@ -442,7 +442,7 @@ func (p *AccountPages) adminOnly(
http.Redirect(w, r, "/login", http.StatusSeeOther)
return
}
if !user.IsAdmin {
if !staffMay(user, r) {
// 404 rather than 403: a 403 confirms the page exists.
http.NotFound(w, r)
return