diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-02-02 22:26:22 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-02 22:26:22 +1100 |
commit | df199227f81deca5116f9ba35b0d156b25b4fc72 (patch) | |
tree | 33e3bf8ae0ef389af16c84b4b0ec41a22fe08a0d | |
parent | Merge pull request from GHSA-hqqp-gpqw-9w5c (diff) | |
download | server-df199227f81deca5116f9ba35b0d156b25b4fc72.tar.xz |
Merge pull request from GHSA-9qvc-84ch-5p2x
* Check permissions and rights * Prevent editing message type unless MANAGE_MESSAGES right. Also don't send sensitive data in patch response.
-rw-r--r-- | src/api/routes/channels/#channel_id/messages/#message_id/index.ts | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/src/api/routes/channels/#channel_id/messages/#message_id/index.ts b/src/api/routes/channels/#channel_id/messages/#message_id/index.ts |