mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: #8776 some users unable to restore old versions via history
This commit is contained in:
@@ -19,7 +19,7 @@ module.exports = function (SocketPosts) {
|
|||||||
usernames = usernames.map(userObj => (userObj.uid ? userObj.username : null));
|
usernames = usernames.map(userObj => (userObj.uid ? userObj.username : null));
|
||||||
|
|
||||||
const cid = await posts.getCidByPid(data.pid);
|
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);
|
timestamps.push(post.timestamp);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user