mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
closes #3614
This commit is contained in:
@@ -333,6 +333,9 @@ var async = require('async'),
|
||||
privileges.categories.filterCids('find', children, uid, next);
|
||||
},
|
||||
function (children, next) {
|
||||
children = children.filter(function(cid) {
|
||||
return parseInt(category.cid, 10) !== parseInt(cid, 10);
|
||||
});
|
||||
if (!children.length) {
|
||||
category.children = [];
|
||||
return callback();
|
||||
|
||||
Reference in New Issue
Block a user