Skip to content

Node.js based forum software built for the modern web

fix: #9194 global mods unable to pin or unpin topics

Julian Lamc0fb1cb59cd7
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]]');
}