From 4fc48fa6f9c10ad6235e19c9e38be31df9bb5cc8 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Fri, 24 May 2013 12:03:16 +0200 Subject: fixes bug introduced in 4b63a89 --- controllers/system.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/controllers/system.js b/controllers/system.js index e655ee9..6432062 100644 --- a/controllers/system.js +++ b/controllers/system.js @@ -25,14 +25,6 @@ Validator.prototype.getErrors = function() { return returnThis; } - - if (req.user.status < access) { - console.log(req.header('Referer')); - if (req.header('Referer') === undefined) { return res.status(403).render('error', { title: 403, text: 'Du har ikke tilgang til denne siden. Du må registrere deg først. Sjekk mailen din for å se invitekode.' }); } - else { return res.redirect('back'); } - } - - /** * Before the user log in * =============================================================== -- cgit v1.2.3