mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
added filterUids method to privileges
used to filter uids on a single category
This commit is contained in:
@@ -216,7 +216,7 @@ var db = require('./database'),
|
||||
return callback(null, []);
|
||||
}
|
||||
|
||||
privileges.categories.filter(privilege, cids, uid, function(err, cids) {
|
||||
privileges.categories.filterCids(privilege, cids, uid, function(err, cids) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
@@ -402,7 +402,7 @@ var db = require('./database'),
|
||||
async.waterfall([
|
||||
async.apply(db.getSortedSetRange, 'categories:cid', 0, -1),
|
||||
function(cids, next) {
|
||||
privileges.categories.filter('find', cids, uid, next);
|
||||
privileges.categories.filterCids('find', cids, uid, next);
|
||||
},
|
||||
function (cids, next) {
|
||||
Categories.getCategoriesData(cids, next);
|
||||
|
||||
Reference in New Issue
Block a user