Skip to content

Commit

Permalink
fix: #8776 some users unable to restore old versions via history
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Oct 20, 2020
1 parent df1cfc4 commit 7a8f704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/socket.io/posts/diffs.js
Expand Up @@ -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 {
Expand Down

0 comments on commit 7a8f704

Please sign in to comment.