added privileges.topics.filterUids

if a topic is deleted and user doesn't have permissions/admin/mod dont
send notifs
This commit is contained in:
barisusakli
2015-04-18 16:34:32 -04:00
parent 8ee40ece71
commit b7b44e13b1
6 changed files with 50 additions and 7 deletions

View File

@@ -129,7 +129,7 @@ var async = require('async'),
Topics.getTopics = function(tids, uid, callback) {
async.waterfall([
function(next) {
privileges.topics.filter('read', tids, uid, next);
privileges.topics.filterTids('read', tids, uid, next);
},
function(tids, next) {
Topics.getTopicsByTids(tids, uid, next);