From 2550ebb14d2b7b89151222caa6950772a68a2bef Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Mon, 27 May 2013 11:57:53 +0200 Subject: fixed small bug --- app/controllers/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3