isDownloadSchedulingAvailable

Function

To be used before calling any of the schedule functions in order to prevent fetch requests to scheduler API from portal/enterprise

Note: After a discussion w/ Dave, we decided this check is preferred to passing the context into functions that would need checkPermission

To be used before calling any of the schedule functions in order to prevent fetch requests to scheduler API from portal/enterprise

Note: After a discussion w/ Dave, we decided this check is preferred to passing the context into functions that would need checkPermission

  • isDownloadSchedulingAvailable(requestOptions: IRequestOptions, access: AccessLevel) : boolean

Parameters

Parameter Type Default Notes
requestOptions Required IRequestOptions

The request options needed to get the HubApiUrl

access Required AccessLevel

Available requestOptions

Property Type Notes

Returns

Whether or not the scheduling feature is available

boolean

Function defined in common/src/content/manageSchedule.ts:148