refactor(auth): add withAdmin() wrapper for admin API routes #68
No reviewers
Labels
No labels
agent-context-drift
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: rstillwell/deckhearth#68
Loading…
Reference in a new issue
No description provided.
Delete branch "refactor/with-admin-wrapper"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
withAdmin(handler)tolib/permission-middleware.js— inner handler receives(req, res, user)after auth gatesuser.role !== 'admin'checksTest plan
npm run test:run— 56/56 passnpm run lint— cleanMade with Cursor
The latest updates on your projects. Learn more about Vercel for GitHub.
Pipeline Health
Build + CI gates
Build runs on Vercel; this CI runs lint and schema-map drift only (no duplicate build).
Role reports
See individual comments above for details. This rollup updates automatically.