diff --git a/layouts/default.vue b/layouts/default.vue index f9f43a6d4..95a5fc37f 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -39,8 +39,19 @@ const testerPasswordCookie = useCookie('tester-password', longtimeCookieSetting) const testerPassword = ref(''); const requiresLogin = computed((): boolean => { - return !config.macrolanguage?.enabled && (runtimeConfig.public.env === 'test' || - config.locale !== '_' && !locales[config.locale]?.published); + if (config.macrolanguage?.enabled) { + return false; + } + + if (runtimeConfig.public.env === 'test') { + return true; + } + + if (config.locale !== '_' && !locales[config.locale]?.published) { + return true; + } + + return false; }); const testerPasswordValid = ref(); const checkTesterPassword = async () => {