Function hasOneOfRoles

Checks if the user has at least one of the specified roles, regardless of the scope.

  • Parameters

    • roles: string[]

      An array of roles to check.

    • userId: string

      The ID of the user.

    Returns Promise<boolean>

    Resolves to true if the user has at least one of the roles, otherwise false.