Skip to content

[Ticket] Role model & permissions (Admin/Mod/Registered/Guest + RSI-Verified badge) #112

Closed

Description

@cmFrameShift

🧾 Title

Role model & permissions

🧠 Summary

Define and enforce the MusterDeck account role ladder and the badge modifiers, from the 2026-06-09 IA spec. This is the prerequisite — it blocks #110 (Admin Portal) and #111 (Moderator page); do it first.

📦 Scope

  • Five roles: Super Admin ▸ Admin ▸ Moderator ▸ Registered User ▸ Guest User
  • Super Admin = Blair + Christoph only, HARD-CODED to the project (decision confirmed 2026-06-09 — not a flag anyone can be granted). Super Admin is the only tier that can assign/revoke Admin.
  • Permission checks per role across the app (what each can see/do), server-enforced
  • Badge modifiers (orthogonal to role, not access levels): ◆ RSI Verified (from RSI handle verification flow #12) + the three Patreon tiers Captain / Admiral / Praetorian (from Patreon supporter tiers + badges (Captain / Admiral / Praetorian)  #103)
  • Data model + enforcement (likely Supabase RLS / policies)

🚫 Out of Scope

✅ Acceptance Criteria

🧪 Testing / Validation

  • Each role is limited to its permitted actions (server-enforced)
  • A non-super-admin cannot grant themselves admin

🧰 Implementation Notes

Auth/permissions/RLS are higher-risk — Blair reviews before merge per the operating model.

🧰 Notes / Links

✅ Addendum: Bugs Found/Fixed

⏳ Addendum: Pending

Part of #109

Metadata

Metadata

Assignees

No one assigned

    Labels

    epic:foundationInfrastructure, auth, and platform setup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions