Neemias — API Reference
    Preparing search index...

    Function hasRolePermission

    • Check if ANY of the given roles has a specific permission. Useful for middleware that receives an array of user roles.

      Parameters

      • roles: string[]
      • permission: string

      Returns boolean