aboutsummaryrefslogtreecommitdiff
path: root/admin/index.js
diff options
context:
space:
mode:
authorMarvin Borner2021-01-21 19:53:37 +0100
committerMarvin Borner2021-01-21 19:53:37 +0100
commita3b74559f850572e7053a32cdcbca8980088f14d (patch)
tree3736bc030098075875d33cf3d8e6fb208e2a95e1 /admin/index.js
parentce718b9a297665c038eead55a2150b6dea4ab148 (diff)
Whooops
Diffstat (limited to 'admin/index.js')
-rw-r--r--admin/index.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/admin/index.js b/admin/index.js
index f7b7c7b..a67b9f3 100644
--- a/admin/index.js
+++ b/admin/index.js
@@ -7,7 +7,6 @@ const { checkUser, checkAdmin } = require("../auth");
app.use(
"/",
(req, res, next) => {
- console.log(req.path);
if ((req.session.loggedIn && req.session.isAdmin) || req.path.startsWith("/api/votes")) next();
else res.redirect("/");
},