mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user