• Checks whether the requiredPermissions are satisfied by the grantedPermissions or not. Having at least one of the required permissions granted satisfies this permission requirement.

    Parameters

    • requiredPermissions: string[]

      The required permissions.

    • grantedPermissions: string[]

      The current permissions of the user.

    Returns boolean

  • Checks whether the requiredPermissions are satisfied by the grantedPermissions per each service. Having at least one of the required permissions granted per each service satisfies this permission requirement.

    Parameters

    • requiredPermissions: {
          [serviceId: string]: string[];
      }

      The required permissions. Should be an object of shape { [serviceId: string]: string[] }.

      • [serviceId: string]: string[]
    • grantedPermissions: {
          [serviceId: string]: string[];
      }

      The current permissions of the user. Should be an object of shape { [serviceId: string]: string[] }.

      • [serviceId: string]: string[]

    Returns boolean

Generated using TypeDoc