privilege cleanup

This commit is contained in:
barisusakli
2014-05-17 18:59:34 -04:00
parent ff2bad635c
commit 472e6b5206
10 changed files with 29 additions and 84 deletions

View File

@@ -49,7 +49,7 @@ module.exports = function(Topics) {
});
async.filter(newtids, function(tid, next) {
privileges.topics.canRead(tid, uid, function(err, canRead) {
privileges.topics.can('read', tid, uid, function(err, canRead) {
next(!err && canRead);
});
}, function(newtids) {