mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 05:55:48 +01:00
fixed #1406
This commit is contained in:
@@ -66,6 +66,11 @@ categoriesController.get = function(req, res, next) {
|
||||
uid = req.user ? req.user.uid : 0;
|
||||
|
||||
async.waterfall([
|
||||
function(next) {
|
||||
categories.getCategoryField(cid, 'disabled', function(err, disabled) {
|
||||
next(disabled === '1' ? new Error('category-disabled') : undefined);
|
||||
});
|
||||
},
|
||||
function(next) {
|
||||
categoryTools.privileges(cid, uid, function(err, categoryPrivileges) {
|
||||
if (err) {
|
||||
|
||||
Reference in New Issue
Block a user