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:
1 parent
f8fcecd640
commit
b60cf45adf
19 files changed
+352
-24
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user