mirror of
https://github.com/penpot/penpot.git
synced 2025-05-14 21:26:38 +02:00
🐛 Fix error when a user different than the thread creator edits a comment
This commit is contained in:
parent
ea2e25b46d
commit
ec131382b3
2 changed files with 3 additions and 2 deletions
|
@ -468,8 +468,8 @@
|
|||
{::doc/added "1.15"}
|
||||
[{:keys [::db/pool] :as cfg} {:keys [::rpc/profile-id ::rpc/request-at id share-id content] :as params}]
|
||||
(db/with-atomic [conn pool]
|
||||
(let [{:keys [thread-id] :as comment} (get-comment conn id ::db/for-update? true)
|
||||
{:keys [file-id page-id owner-id] :as thread} (get-comment-thread conn thread-id ::db/for-update? true)]
|
||||
(let [{:keys [thread-id owner-id] :as comment} (get-comment conn id ::db/for-update? true)
|
||||
{:keys [file-id page-id] :as thread} (get-comment-thread conn thread-id ::db/for-update? true)]
|
||||
|
||||
(files/check-comment-permissions! conn profile-id file-id share-id)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue