Merge pull request #7285 from overleaf/jpa-enforce-edit-own-comment

[misc] block users from editing other users comments

GitOrigin-RevId: 6f2ba38daf8089a478d79ca495b3557a57390b43
This commit is contained in:
Jakob Ackermann
2022-04-05 12:17:56 +00:00
committed by Copybot
parent 99607d4afc
commit b548d4e15b
5 changed files with 103 additions and 20 deletions
@@ -151,7 +151,7 @@ module.exports = ChatApiHandler = {
)
},
editMessage(project_id, thread_id, message_id, content, callback) {
editMessage(project_id, thread_id, message_id, userId, content, callback) {
if (callback == null) {
callback = function () {}
}
@@ -161,6 +161,7 @@ module.exports = ChatApiHandler = {
method: 'POST',
json: {
content,
userId,
},
},
callback