mirror of
https://github.com/penpot/penpot.git
synced 2025-03-11 23:31:21 -05:00
🐛 Fix permissions when moving comments
This commit is contained in:
parent
35c1008b37
commit
8a33a63f91
2 changed files with 6 additions and 2 deletions
|
@ -496,7 +496,8 @@
|
||||||
;; --- COMMAND: Update comment thread position
|
;; --- COMMAND: Update comment thread position
|
||||||
|
|
||||||
(s/def ::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
|
(sv/defmethod ::update-comment-thread-position
|
||||||
{::doc/added "1.15"}
|
{::doc/added "1.15"}
|
||||||
|
@ -514,7 +515,8 @@
|
||||||
;; --- COMMAND: Update comment frame
|
;; --- COMMAND: Update comment frame
|
||||||
|
|
||||||
(s/def ::update-comment-thread-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
|
(sv/defmethod ::update-comment-thread-frame
|
||||||
{::doc/added "1.15"}
|
{::doc/added "1.15"}
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
(:require
|
(:require
|
||||||
[app.common.colors :as clr]
|
[app.common.colors :as clr]
|
||||||
[app.common.data.macros :as dm]
|
[app.common.data.macros :as dm]
|
||||||
|
[app.main.data.comments :as dcm]
|
||||||
[app.main.data.messages :as msg]
|
[app.main.data.messages :as msg]
|
||||||
[app.main.data.workspace :as dw]
|
[app.main.data.workspace :as dw]
|
||||||
[app.main.data.workspace.persistence :as dwp]
|
[app.main.data.workspace.persistence :as dwp]
|
||||||
|
@ -127,6 +128,7 @@
|
||||||
|
|
||||||
(mf/with-effect [project-id file-id]
|
(mf/with-effect [project-id file-id]
|
||||||
(st/emit! (dw/initialize-file project-id file-id))
|
(st/emit! (dw/initialize-file project-id file-id))
|
||||||
|
(st/emit! (dcm/retrieve-comment-threads file-id))
|
||||||
(fn []
|
(fn []
|
||||||
(st/emit! ::dwp/force-persist
|
(st/emit! ::dwp/force-persist
|
||||||
(dw/finalize-file project-id file-id))))
|
(dw/finalize-file project-id file-id))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue