UserRoleLabel extension

Human-readable, localized label for a UserRole.

Used in profile/account cards so staff accounts (admin, developer, ERP…) show their role instead of "free account" — they don't pay a subscription but they are not "free" users.

on
  • UserRole

Properties

isStaff → bool

Available on UserRole, provided by the UserRoleLabel extension

Whether this role is staff (above a regular subscriber) — i.e. an account whose status should be shown as a role rather than "free account".
no setter
label → String

Available on UserRole, provided by the UserRoleLabel extension

no setter