Neemias — API Reference
    Preparing search index...

    Function checkRoleAllowed

    • Check if a role is in the allowed list. Centralizes role-membership checks used by service-level requireRole. When the migration to permission-based checks is complete, this function will be replaced by permission lookups.

      Parameters

      • role: string
      • allowed: string[]

      Returns boolean