mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: dont load cid=-1 in tag filter dropdown
This commit is contained in:
@@ -79,6 +79,7 @@ module.exports = function (SocketTopics) {
|
||||
cids = await privileges.categories.filterCids('topics:read', data.cids, socket.uid);
|
||||
} else { // if no cids passed in get all cids we can read
|
||||
cids = await categories.getCidsByPrivilege('categories:cid', socket.uid, 'topics:read');
|
||||
cids = cids.filter(cid => cid !== -1);
|
||||
}
|
||||
|
||||
let tags = [];
|
||||
|
||||
Reference in New Issue
Block a user