mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
chore(testing): DO NOT MERGE THIS
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user