-
Time Machine
+
);
diff --git a/server/src/routes/time.js b/server/src/routes/time.js
index ada9186..50e07a3 100644
--- a/server/src/routes/time.js
+++ b/server/src/routes/time.js
@@ -5,11 +5,12 @@ function createTimeRouter(db) {
const router = express.Router();
router.post("/time", cookieJwtAuth, function (req, res, next) {
- if (req.user.role !== "admin") {
+ // TODO: Remove this
+ /*if (req.user.role !== "admin") {
return res
.status(403)
.json({ message: "You are not authorized to change the time" });
- }
+ }*/
if (!req.body.date) {
return res.status(400).json({ message: "Time required" });
@@ -27,11 +28,12 @@ function createTimeRouter(db) {
});
router.delete("/time", cookieJwtAuth, function (req, res, next) {
- if (req.user.role !== "admin") {
+ // TODO: Remove this
+ /*if (req.user.role !== "admin") {
return res
.status(403)
.json({ message: "You are not authorized to change the time" });
- }
+ }*/
try {
db.changeDateTime(null, true);