added some missing files from previous commits, fixed setParent mechanic which broke after I refactored, #2463

This commit is contained in:
Julian Lam
2015-03-25 17:21:38 -04:00
parent 25cb1f9284
commit 9dece4a1db
7 changed files with 124 additions and 167 deletions

View File

@@ -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
});
});