mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
allow non-admins to observe timetravel
This commit is contained in:
@@ -224,12 +224,6 @@ api.timeTravelTime = {
|
|||||||
fakeClock();
|
fakeClock();
|
||||||
}
|
}
|
||||||
|
|
||||||
const { user } = res.locals;
|
|
||||||
|
|
||||||
if (!user.permissions.fullAccess) {
|
|
||||||
throw new BadRequest('You do not have permission to time travel.');
|
|
||||||
}
|
|
||||||
|
|
||||||
res.respond(200, {
|
res.respond(200, {
|
||||||
time: new Date(),
|
time: new Date(),
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user