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

This commit is contained in:
Julian Lam
2021-01-12 14:02:12 -05:00
parent 286aa243f5
commit c0fb1cb59c

View File

@@ -146,7 +146,7 @@ module.exports = function (Topics) {
throw new Error('[[error:no-topic]]'); 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]]'); throw new Error('[[error:no-privileges]]');
} }