passing in the column count so a message can be displayed to users when no users have privs in a category, #2887

This commit is contained in:
Julian Lam
2015-03-25 17:34:16 -04:00
parent 60b19a9d62
commit 4f2c7382c5
2 changed files with 10 additions and 0 deletions

View File

@@ -136,6 +136,8 @@ adminController.categories.get = function(req, res, next) {
return next(err);
}
data.privileges.columnCount = data.privileges.labels.users.length + 2;
res.render('admin/manage/category', {
category: data.category[0],
privileges: data.privileges