Skip to content

Add role-based UI permission gating #23

Description

@Dannyswiss1

client/src/lib/types.ts already defines StaffRole (admin | clinician | front_desk), but nothing in the UI
uses it — every connected wallet sees every action. Gate sensitive actions (revoking access, uploading records,
adding/removing staff) behind role checks, and reflect the current user's effective role somewhere visible in the
UI (e.g. the Navbar or Provider Profile).

Acceptance criteria

  • front_desk role cannot upload records or revoke access grants (buttons hidden or disabled with a tooltip)
  • admin-only actions (staff management) are gated to admin role
  • Current effective role is visibly surfaced somewhere in the UI

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions