Hierarchy

  • PermissionUtils

Constructors

Methods

  • Validate a permission against a list of permissions

    Returns

    true if permission is included in the permissionList

    Type Parameters

    • T extends string

    Parameters

    • permission: T

      The permission to check for

    • acceptedPermissionList: PermissionList<T>

      List of permissions that are accepted

    Returns boolean

  • Populates an array of permission value objects

    Type Parameters

    • T extends string

    Parameters

    • showPermissions: readonly T[]
    • enabledPermissions: readonly T[]

    Returns readonly PermissionValueObject<T>[]

Generated using TypeDoc