more fixes

This commit is contained in:
Baris Usakli
2017-12-20 15:19:22 -05:00
parent 242dc41aca
commit 025709499c
8 changed files with 11 additions and 12 deletions

View File

@@ -13,7 +13,7 @@ privilegesController.get = function (req, res, callback) {
function (next) {
async.parallel({
privileges: function (next) {
if (!cid) {
if (!cid) {
privileges.global.list(next);
} else {
privileges.categories.list(cid, next);
@@ -23,7 +23,6 @@ privilegesController.get = function (req, res, callback) {
}, next);
},
function (data) {
data.allCategories.forEach(function (category) {
if (category) {
category.selected = parseInt(category.cid, 10) === parseInt(cid, 10);