From c0a52924f1f7ef8caeaacda67363ac269b56042c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 20 Sep 2021 10:48:35 -0400 Subject: [PATCH] fix: #9812, add topics:schedule --- src/privileges/topics.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/privileges/topics.js b/src/privileges/topics.js index 20ad19aa19..cabbf3dfed 100644 --- a/src/privileges/topics.js +++ b/src/privileges/topics.js @@ -38,6 +38,7 @@ privsTopics.get = async function (tid, uid) { return await plugins.hooks.fire('filter:privileges.topics.get', { 'topics:reply': (privData['topics:reply'] && ((!topicData.locked && mayReply) || isModerator)) || isAdministrator, 'topics:read': privData['topics:read'] || isAdministrator, + 'topics:schedule': privData['topics:schedule'] || isAdministrator, 'topics:tag': privData['topics:tag'] || isAdministrator, 'topics:delete': (privData['topics:delete'] && (isOwner || isModerator)) || isAdministrator, 'posts:edit': (privData['posts:edit'] && (!topicData.locked || isModerator)) || isAdministrator,