type alias Role

Sets what a user may do beyond the basics, through ROLE_PERMISSIONS (shared/permissions.ts). An admin changes it with PATCH /api/users/:key/role.

Definition

"user" | "moderator" | "admin"

Usage

import { type Role } from "shared/user.ts";