ACG Docs
Admin

Admin

Admin screens available in the buyer portal.

The portal includes admin screens under /admin. Access is restricted to users with role = 'admin' in the database.

Pages

  • /admin — dashboard with totals (users, subscriptions, revenue, pro licenses).
  • /admin/users — list and search every user, change role, ban / unban.
  • /admin/subscriptions — list every active and past subscription, see plan and current period.
  • /admin/licenses — list every Pro purchase. See order id, amount, GitHub username, invitation status, and date. Useful for support: you can see at a glance whether a buyer's GitHub invitation was sent and accepted.
  • /admin/credits — search and audit credit ledger entries. Used to investigate "where did my credits go" questions.

Promoting a user to admin

Currently done by direct SQL:

UPDATE "user" SET role = 'admin' WHERE email = 'you@example.com';

A self-serve UI for this is on the roadmap.

Auditability

All admin actions go through the same database writes that the public API uses. There is no separate admin-only code path for write operations, which means every change is visible in the same audit trail as user-initiated changes.

On this page