mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-15 08:22:17 +00:00
allow non-admins to observe timetravel
This commit is contained in:
parent
aedbe7d333
commit
b0d6f7722b
1 changed files with 0 additions and 6 deletions
|
|
@ -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(),
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue