[security] keep test & unpublished versions under a password - fix home

This commit is contained in:
Andrea Vos 2023-03-11 13:36:45 +01:00
parent 8eaca6997e
commit e25824cc6d

View File

@ -31,6 +31,7 @@
<DialogueBox ref="dialogue"/>
<Lightbox/>
</div>
</template>
<script>
@ -48,9 +49,11 @@
mixins: [dark],
data() {
return {
requiresLogin: !this.locales[this.config.locale]
requiresLogin: this.config.locale !== '_' && (
!this.locales[this.config.locale]
|| !this.locales[this.config.locale].published
|| process.env.NODE_ENV === 'test',
|| process.env.NODE_ENV === 'test'
),
testerPassword: '',
testerPasswordCookie: this.$cookies.get(TESTER_PASSWORD_COOKIE_KEY),
}