diff --git a/frontend/openshift.configmap.dev.yml b/frontend/openshift.configmap.dev.yml index 037111e219..edd1423759 100644 --- a/frontend/openshift.configmap.dev.yml +++ b/frontend/openshift.configmap.dev.yml @@ -22,4 +22,4 @@ objects: name: ${NAME}-${ZONE}-${COMPONENT}-config data: params.js: | - window.localStorage.setItem('VITE_FEATURE_FLAGS','{"STAFF_CREATE":true}'); + window.localStorage.setItem('VITE_FEATURE_FLAGS','{}'); diff --git a/frontend/openshift.configmap.test.yml b/frontend/openshift.configmap.test.yml index 037111e219..edd1423759 100644 --- a/frontend/openshift.configmap.test.yml +++ b/frontend/openshift.configmap.test.yml @@ -22,4 +22,4 @@ objects: name: ${NAME}-${ZONE}-${COMPONENT}-config data: params.js: | - window.localStorage.setItem('VITE_FEATURE_FLAGS','{"STAFF_CREATE":true}'); + window.localStorage.setItem('VITE_FEATURE_FLAGS','{}'); diff --git a/frontend/package.json b/frontend/package.json index df259acee0..5b41b5444f 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -24,7 +24,7 @@ "scripts": { "start": "vite --host --port 3000", "build": "vue-tsc --noEmit && vite build", - "preview": "cross-env VITE_NODE_ENV=test VITE_FEATURE_FLAGS={\\\"STAFF_CREATE\\\":true} start-server-and-test stub http://127.0.0.1:8080 start", + "preview": "cross-env VITE_NODE_ENV=test start-server-and-test stub http://127.0.0.1:8080 start", "preview:app": "cross-env VITE_NODE_ENV=test vite --host --port 3000", "typecheck": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false", "lint": "eslint . --fix --ignore-path .gitignore", @@ -36,12 +36,12 @@ "posttest:component": "mv reports/.nyc_report reports/component", "test:unit": "cross-env VITE_NODE_ENV=test NODE_ENV=test vitest run --coverage", "posttest:unit": "mv reports/.vite_report reports/unit", - "test:e2e": "cross-env VITE_NODE_ENV=test VITE_FEATURE_FLAGS={\\\"STAFF_CREATE\\\":true} start-server-and-test preview http://127.0.0.1:3000 'cypress run --headless'", + "test:e2e": "cross-env VITE_NODE_ENV=test start-server-and-test preview http://127.0.0.1:3000 'cypress run --headless'", "posttest:e2e": "mv reports/.nyc_report reports/e2e", "pretest:report:merge": "rm -rf reports-merge && mkdir -p reports-merge && for name in component e2e unit; do cp reports/$name/coverage-final.json reports-merge/$name.json; done", "test:report:merge": "mkdir -p .nyc_output && rm -rf coverage && nyc --config nyc.config.json merge reports-merge && mv coverage.json .nyc_output/out.json && nyc --config nyc.config.json report --reporter lcov --reporter text-summary --report-dir coverage --temp-dir .nyc_output", "test:report:clean": "rm -rf reports && mkdir -p reports/.nyc_output/processinfo && mkdir -p coverage", - "test:build": "cross-env VITE_MODE=test VITE_NODE_ENV=test VITE_FEATURE_FLAGS={\\\"STAFF_CREATE\\\":true} start-server-and-test preview http://127.0.0.1:3000 'cypress open'", + "test:build": "cross-env VITE_MODE=test VITE_NODE_ENV=test start-server-and-test preview http://127.0.0.1:3000 'cypress open'", "test:flush": "rm -rf reports && rm -rf .nyc_output && rm -rf coverage && rm -rf reports-merge", "posttest:flush": "npm run coverage", "test:unit:devtools": "cross-env VITE_NODE_ENV=test NODE_ENV=test vitest run --inspect-brk --pool threads --poolOptions.threads.singleThread" diff --git a/frontend/src/components/MainHeaderComponent.vue b/frontend/src/components/MainHeaderComponent.vue index a9057637c8..1610924000 100644 --- a/frontend/src/components/MainHeaderComponent.vue +++ b/frontend/src/components/MainHeaderComponent.vue @@ -107,7 +107,7 @@ const logoutBtnKind = computed(() => isSmallScreen.value || isMediumScreen.value ? "ghost" : "tertiary", ); -const userHasAuthority = ["CLIENT_EDITOR", "CLIENT_ADMIN"].some(authority => ForestClientUserSession.authorities.includes(authority)) && featureFlags.STAFF_CREATE; +const userHasAuthority = ["CLIENT_EDITOR", "CLIENT_ADMIN"].some(authority => ForestClientUserSession.authorities.includes(authority));