mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-13 17:52:22 +00:00
chore(testing): DO NOT MERGE THIS
This commit is contained in:
parent
0756d36fb3
commit
3bb1cceed1
2 changed files with 2 additions and 2 deletions
|
|
@ -328,7 +328,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
v-if="!IS_PRODUCTION && isUserLoaded"
|
v-if="ENABLE_TIME_TRAVEL && isUserLoaded"
|
||||||
class="debug-toggle"
|
class="debug-toggle"
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import {
|
||||||
} from '../libs/errors';
|
} from '../libs/errors';
|
||||||
|
|
||||||
export default function ensureDevelpmentMode (req, res, next) {
|
export default function ensureDevelpmentMode (req, res, next) {
|
||||||
if (nconf.get('IS_PROD')) {
|
if (!nconf.get('ENABLE_TIME_TRAVEL')) {
|
||||||
next(new NotFound());
|
next(new NotFound());
|
||||||
} else {
|
} else {
|
||||||
next();
|
next();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue