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