diff --git a/config/helpers/is_jh_env.js b/config/helpers/is_jh_env.js index 5afeee2f498a8ba399c4db6567bf88d81e8c769e..10251d3166ea1a81459c86376855880107984823 100644 --- a/config/helpers/is_jh_env.js +++ b/config/helpers/is_jh_env.js @@ -12,4 +12,5 @@ const ROOT_PATH = path.resolve(__dirname, '../..'); // lib/gitlab.rb: Gitlab.jh? // Since IS_EE already satisifies the conditions of not being a FOSS_ONLY. // const isFossOnly = JSON.parse(process.env.FOSS_ONLY || 'false'); -module.exports = IS_EE && fs.existsSync(path.join(ROOT_PATH, 'jh')); +const isEEOnly = JSON.parse(process.env.EE_ONLY || 'false'); +module.exports = IS_EE && !isEEOnly && fs.existsSync(path.join(ROOT_PATH, 'jh'));