Sporades SDK API
    Preparing search index...

    Type Alias AclTeamHelpers

    Read-only Team decisions available while evaluating table and File ACL rules.

    type AclTeamHelpers = {
        hasAnyRole(teamId: string, roles: readonly string[]): boolean;
        hasRole(teamId: string, role: string): boolean;
        isAdmin(teamId: string): boolean;
        isMember(teamId: string): boolean;
    }
    Index
    • True when the current linked actor holds any role in this non-empty, bounded (32 maximum) declared-role set for the explicitly identified Team.

      Parameters

      • teamId: string
      • roles: readonly string[]

      Returns boolean

    • True when the current linked actor holds this currently declared application role in the explicitly identified Team.

      Parameters

      • teamId: string
      • role: string

      Returns boolean

    • True when the current linked actor is an admin of the explicitly identified Team.

      Parameters

      • teamId: string

      Returns boolean

    • True when the current linked actor belongs to the explicitly identified Team.

      Parameters

      • teamId: string

      Returns boolean