mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
more fixes
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user