mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
removed extra isAdminOrMod check
This commit is contained in:
@@ -111,6 +111,9 @@ categoryController.get = function(req, res, callback) {
|
||||
categories.getCategoryById(payload, next);
|
||||
},
|
||||
function (categoryData, next) {
|
||||
|
||||
categories.modifyTopicsByPrivilege(categoryData.topics, userPrivileges);
|
||||
|
||||
if (categoryData.link) {
|
||||
db.incrObjectField('category:' + categoryData.cid, 'timesClicked');
|
||||
return res.redirect(categoryData.link);
|
||||
|
||||
Reference in New Issue
Block a user