mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-23 08:50:27 +01:00
fix: #9414, use posts:view_deleted
This commit is contained in:
@@ -147,7 +147,7 @@ module.exports = function (Categories) {
|
||||
};
|
||||
|
||||
Categories.modifyTopicsByPrivilege = function (topics, privileges) {
|
||||
if (!Array.isArray(topics) || !topics.length || privileges.isAdminOrMod) {
|
||||
if (!Array.isArray(topics) || !topics.length || privileges.view_deleted) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user