first pass at #773

This commit is contained in:
Julian Lam
2014-01-21 15:17:41 -05:00
parent 397861c3cc
commit bafc8caaf5
2 changed files with 5 additions and 0 deletions

View File

@@ -190,6 +190,9 @@ var path = require('path'),
return next(err);
}
// Add privilege data to template data
data.privileges = privileges;
if (data && parseInt(data.disabled, 10) === 0) {
res.json(data);
} else {