diff options
Diffstat (limited to 'app/controllers/users.js')
-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(); |