diff --git a/src/CONST.ts b/src/CONST.ts index d13c3b374f5a..12c254736cdb 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -335,6 +335,7 @@ const CONST = { TRACK_EXPENSE: 'trackExpense', P2P_DISTANCE_REQUESTS: 'p2pDistanceRequests', WORKFLOWS_DELAYED_SUBMISSION: 'workflowsDelayedSubmission', + ACCOUNTING: 'accounting', }, BUTTON_STATES: { DEFAULT: 'default', diff --git a/src/libs/Permissions.ts b/src/libs/Permissions.ts index 071113a70fae..0f42737c270c 100644 --- a/src/libs/Permissions.ts +++ b/src/libs/Permissions.ts @@ -38,6 +38,10 @@ function canUseWorkflowsDelayedSubmission(betas: OnyxEntry): boolean { return !!betas?.includes(CONST.BETAS.WORKFLOWS_DELAYED_SUBMISSION) || canUseAllBetas(betas); } +function canUseAccountingIntegrations(betas: OnyxEntry): boolean { + return !!betas?.includes(CONST.BETAS.ACCOUNTING) || canUseAllBetas(betas); +} + /** * Link previews are temporarily disabled. */ @@ -55,4 +59,5 @@ export default { canUseReportFields, canUseP2PDistanceRequests, canUseWorkflowsDelayedSubmission, + canUseAccountingIntegrations, };