fix: #9414, use posts:view_deleted

This commit is contained in:
Barış Soner Uşaklı
2021-03-21 21:38:08 -04:00
parent 77f551a4cc
commit e42b152f16
4 changed files with 9 additions and 4 deletions

View File

@@ -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;
}