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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user