diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-27 11:57:53 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-27 11:57:53 +0200 |
commit | 2550ebb14d2b7b89151222caa6950772a68a2bef (patch) | |
tree | 757375092f08216bd3357fce823acaa78547d73c | |
parent | just derping around (diff) | |
download | Divid-2550ebb14d2b7b89151222caa6950772a68a2bef.tar.gz |
fixed small bug
-rw-r--r-- | app/controllers/users.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/users.js b/app/controllers/users.js index 725fa3e..237d359 100644 --- a/app/controllers/users.js +++ b/app/controllers/users.js @@ -133,7 +133,7 @@ exports.postProjectParticipants = function(req, res) { if (err || !project) return res.status(500).render('error', { title: '500', text: 'En serverfeil oppstod', error: err.stack }); Access.checkAccess(req.user._id, project._id, 3, function(err, access) { - if (err || !access) return res.status(403).render('error', { title: '403', text: 'No sir! NO ACCESS FOR YOU', error: err }); + if (err || !access) return res.status(403).render('error', { title: '403', text: 'No sir! NO ACCESS FOR YOU', error: err || 'no access' }); // validate var emails = sanitize(req.body.emails).xss(); |