Skip to content

Commit 7bbb28f

Browse files
add feature flag
1 parent 8128ca4 commit 7bbb28f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/pages/workflow/composables/useWorkflowNavigationConfig/useWorkflowNavigationConfigOJS.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,15 +309,20 @@ export function useWorkflowNavigationConfigOJS(pageInitConfig) {
309309
}),
310310
);
311311

312-
if (permissions.canAccessProduction) {
312+
if (
313+
permissions.canAccessProduction &&
314+
pkp.context.featureFlags?.enableBodyTextEditor
315+
) {
313316
items.push(
314317
getPublicationItem({
315318
publicationId,
316319
name: 'bodyText',
317320
label: t('publication.bodyText'),
318321
}),
319322
);
323+
}
320324

325+
if (permissions.canAccessProduction) {
321326
items.push(
322327
getPublicationItem({
323328
publicationId,

0 commit comments

Comments
 (0)