aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-05-27 11:57:53 +0200
committerDennis Eriksen <dennis.se@gmail.com>2013-05-27 11:57:53 +0200
commit2550ebb14d2b7b89151222caa6950772a68a2bef (patch)
tree757375092f08216bd3357fce823acaa78547d73c /app
parentjust derping around (diff)
downloadDivid-2550ebb14d2b7b89151222caa6950772a68a2bef.tar.gz
fixed small bug
Diffstat (limited to 'app')
-rw-r--r--app/controllers/users.js2
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();