diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-24 12:03:16 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-24 12:03:16 +0200 |
commit | 4fc48fa6f9c10ad6235e19c9e38be31df9bb5cc8 (patch) | |
tree | 013f0d6f9edcdd7fcb3daf72d72617df0444e2ba | |
parent | added some accesscontrol, so uinregistered users can't make new projects (diff) | |
download | Divid-4fc48fa6f9c10ad6235e19c9e38be31df9bb5cc8.tar.gz |
fixes bug introduced in 4b63a89
-rw-r--r-- | controllers/system.js | 8 |
1 files changed, 0 insertions, 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 * =============================================================== |