mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
added some missing files from previous commits, fixed setParent mechanic which broke after I refactored, #2463
This commit is contained in:
@@ -129,7 +129,7 @@ function getGlobalField(field, callback) {
|
||||
|
||||
adminController.categories.get = function(req, res, next) {
|
||||
async.parallel({
|
||||
category: async.apply(categories.getCategoryData, req.params.category_id),
|
||||
category: async.apply(categories.getCategories, [req.params.category_id], req.user.uid),
|
||||
privileges: async.apply(privileges.categories.list, req.params.category_id)
|
||||
}, function(err, data) {
|
||||
if (err) {
|
||||
@@ -137,7 +137,7 @@ adminController.categories.get = function(req, res, next) {
|
||||
}
|
||||
|
||||
res.render('admin/manage/category', {
|
||||
category: data.category,
|
||||
category: data.category[0],
|
||||
privileges: data.privileges
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user