mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 21:01:08 +02:00
Admin-gated backend endpoints (e.g. POST /api/v1/admin/sync/:id/gift, GET /api/v1/admin/users/:id/tier) check auth.users.role === 'admin', which is orthogonal to access_tier. The script was already lifting every dev account to tier=founder but left role at the 'user' default, so founders couldn't exercise the admin UI flows against their local stack. Wire role alongside tier (both via env-overridable defaults) and reflect it in the success output so re-runs surface what's being applied. Backfilled the existing three dev accounts (tills95, tilljkb, rajiehq) to role=admin manually once; re-running the script now is idempotent. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| dev | ||
| mac-mini | ||
| test-data | ||
| test-reporting | ||
| audit-complexity.mjs | ||
| audit-module-coupling.mjs | ||
| audit-modules.mjs | ||
| audit-workspace-deps.mjs | ||
| backup-monitoring.sh | ||
| build-complexity-map.mjs | ||
| check-status.sh | ||
| create-gift-codes.mjs | ||
| deploy-metrics.sh | ||
| ecosystem-audit.mjs | ||
| fix-mixed-imports.mjs | ||
| generate-dockerfiles.mjs | ||
| generate-env.mjs | ||
| generate-status-page.sh | ||
| lighthouse-audit.sh | ||
| run-integration-tests.sh | ||
| run-tests-with-coverage.sh | ||
| setup-databases.sh | ||
| setup-secrets.mjs | ||
| test-chat-auth.sh | ||
| validate-cloudflared-config.mjs | ||
| validate-dockerfiles.mjs | ||
| validate-monorepo.mjs | ||