diff --git a/src/CONST.ts b/src/CONST.ts index 45fb1da9328c..f8ce1a574d49 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -363,6 +363,7 @@ const CONST = { SPOTNANA_TRAVEL: 'spotnanaTravel', NETSUITE_ON_NEW_EXPENSIFY: 'netsuiteOnNewExpensify', REPORT_FIELDS_FEATURE: 'reportFieldsFeature', + WORKSPACE_FEEDS: 'workspaceFeeds', }, BUTTON_STATES: { DEFAULT: 'default', diff --git a/src/libs/Permissions.ts b/src/libs/Permissions.ts index 632c86387f70..79936d498280 100644 --- a/src/libs/Permissions.ts +++ b/src/libs/Permissions.ts @@ -48,6 +48,10 @@ function canUseReportFieldsFeature(betas: OnyxEntry): boolean { return !!betas?.includes(CONST.BETAS.REPORT_FIELDS_FEATURE) || canUseAllBetas(betas); } +function canUseWorkspaceFeeds(betas: OnyxEntry): boolean { + return !!betas?.includes(CONST.BETAS.WORKSPACE_FEEDS) || canUseAllBetas(betas); +} + /** * Link previews are temporarily disabled. */ @@ -67,4 +71,5 @@ export default { canUseSpotnanaTravel, canUseNetSuiteIntegration, canUseReportFieldsFeature, + canUseWorkspaceFeeds, };