0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-11 07:11:32 -05:00

🐛 Fix permissions when moving comments

This commit is contained in:
Alejandro Alonso 2022-08-24 12:08:38 +02:00
parent 35c1008b37
commit 8a33a63f91
2 changed files with 6 additions and 2 deletions

View file

@ -496,7 +496,8 @@
;; --- COMMAND: Update comment thread position
(s/def ::update-comment-thread-position
(s/keys :req-un [::profile-id ::id ::position ::frame-id ::share-id]))
(s/keys :req-un [::profile-id ::id ::position ::frame-id]
:opt-un [::share-id]))
(sv/defmethod ::update-comment-thread-position
{::doc/added "1.15"}
@ -514,7 +515,8 @@
;; --- COMMAND: Update comment frame
(s/def ::update-comment-thread-frame
(s/keys :req-un [::profile-id ::id ::frame-id ::share-id]))
(s/keys :req-un [::profile-id ::id ::frame-id]
:opt-un [::share-id]))
(sv/defmethod ::update-comment-thread-frame
{::doc/added "1.15"}

View file

@ -8,6 +8,7 @@
(:require
[app.common.colors :as clr]
[app.common.data.macros :as dm]
[app.main.data.comments :as dcm]
[app.main.data.messages :as msg]
[app.main.data.workspace :as dw]
[app.main.data.workspace.persistence :as dwp]
@ -127,6 +128,7 @@
(mf/with-effect [project-id file-id]
(st/emit! (dw/initialize-file project-id file-id))
(st/emit! (dcm/retrieve-comment-threads file-id))
(fn []
(st/emit! ::dwp/force-persist
(dw/finalize-file project-id file-id))))