mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
WIP(shops): safer debug mode
This commit is contained in:
@@ -4,7 +4,7 @@ import {
|
||||
} from '../libs/errors';
|
||||
|
||||
export default function ensureTimeTravelMode (req, res, next) {
|
||||
if (nconf.get('ENABLE_TIME_TRAVEL')) {
|
||||
if (nconf.get('TIME_TRAVEL_ENABLED') && nconf.get('BASE_URL') !== 'https://habitica.com') {
|
||||
next();
|
||||
} else {
|
||||
next(new NotFound());
|
||||
|
||||
Reference in New Issue
Block a user