mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
added filterUids method to privileges
used to filter uids on a single category
This commit is contained in:
@@ -275,11 +275,7 @@ var async = require('async'),
|
||||
return;
|
||||
}
|
||||
|
||||
async.filter(followers, function(uid, next) {
|
||||
privileges.categories.can('read', results.topic.cid, uid, function(err, canRead) {
|
||||
next(!err && canRead);
|
||||
});
|
||||
}, function(followers) {
|
||||
privileges.categories.filterUids('read', results.topic.cid, followers, function(followers) {
|
||||
if (!followers.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user