Files
Jyotisha/frontend/supabase
ClaudeandClaude Opus 5.5 ac720314f0
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m4s
Independent Staging Quality Gate / validate-python (push) Successful in 7m35s
Independent Staging Quality Gate / publish (push) Successful in 5m14s
fix(admin): granting an admin role also sets the identity admin role (BUG-2360)
Admin mutations check identity.users.role through
admin_verified_actor_email, but the console only wrote the RBAC tables,
so a new Owner could read every admin page and got 403 on creating codes.
A trigger now keeps identity.users.role in step with admin_users /
admin_user_roles in the same transaction (grant on role insert; remove
only when the admin user is revoked or deleted, so owner recovery still
finds identity admins), plus a one-time backfill that logs a count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-25 12:25:32 +08:00
..