mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-23 04:34:15 -04:00
[security] keep test & unpublished versions under a password - fix home
This commit is contained in:
parent
8eaca6997e
commit
e25824cc6d
@ -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),
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user