mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user