mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 00:45:47 +01:00
Use topics:read privilege for topic filtering use cases (#7462)
* fix: use topics:read privilege for topic filtering use cases * fix: tests * fix: more broken tests
This commit is contained in:
@@ -90,7 +90,7 @@ function searchInContent(data, callback) {
|
||||
function (mainPids, next) {
|
||||
pids = mainPids.concat(pids).filter(Boolean);
|
||||
|
||||
privileges.posts.filter('read', pids, data.uid, next);
|
||||
privileges.posts.filter('topics:read', pids, data.uid, next);
|
||||
},
|
||||
function (pids, next) {
|
||||
filterAndSort(pids, data, next);
|
||||
|
||||
Reference in New Issue
Block a user