Skip to content

Node.js based forum software built for the modern web

fix: #8776 some users unable to restore old versions via history

Julian Lam7a8f704900ad
diff --git a/src/socket.io/posts/diffs.js b/src/socket.io/posts/diffs.js
index 0c0d930e6d..3a5f2d6a6b 100644
--- a/src/socket.io/posts/diffs.js
+++ b/src/socket.io/posts/diffs.js
@@ -19,7 +19,7 @@ module.exports = function (SocketPosts) {
usernames = usernames.map(userObj => (userObj.uid ? userObj.username : null));
const cid = await posts.getCidByPid(data.pid);
- const canEdit = await privileges.categories.can('edit', cid, socket.uid);
+ const canEdit = await privileges.categories.can('posts:edit', cid, socket.uid);
timestamps.push(post.timestamp);
return {