From c0fb1cb59cd76f46919a171862bc4015d1ff2d2a Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 12 Jan 2021 14:02:12 -0500 Subject: [PATCH] fix: #9194 global mods unable to pin or unpin topics --- src/topics/tools.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/topics/tools.js b/src/topics/tools.js index bc23e55ccb..8d04f4603e 100644 --- a/src/topics/tools.js +++ b/src/topics/tools.js @@ -146,7 +146,7 @@ module.exports = function (Topics) { throw new Error('[[error:no-topic]]'); } - if (uid !== 'system' && !await privileges.topics.can('moderate', tid, uid)) { + if (uid !== 'system' && !await privileges.topics.isAdminOrMod(tid, uid)) { throw new Error('[[error:no-privileges]]'); }