mirror of
https://github.com/penpot/penpot.git
synced 2025-05-29 01:16:11 +02:00
🐛 Remove climit setup for delete-file-object-thumbnail RPC method
This commit is contained in:
parent
d1d384acaf
commit
8e9e967f82
1 changed files with 5 additions and 9 deletions
|
@ -321,18 +321,14 @@
|
||||||
(sv/defmethod ::delete-file-object-thumbnail
|
(sv/defmethod ::delete-file-object-thumbnail
|
||||||
{::doc/added "1.19"
|
{::doc/added "1.19"
|
||||||
::doc/module :files
|
::doc/module :files
|
||||||
::doc/deprecated "1.20"
|
|
||||||
::climit/id [[:file-thumbnail-ops/by-profile ::rpc/profile-id]
|
|
||||||
[:file-thumbnail-ops/global]]
|
|
||||||
::audit/skip true}
|
::audit/skip true}
|
||||||
[cfg {:keys [::rpc/profile-id file-id object-id]}]
|
[cfg {:keys [::rpc/profile-id file-id object-id]}]
|
||||||
|
(files/check-edition-permissions! cfg profile-id file-id)
|
||||||
(db/tx-run! cfg (fn [{:keys [::db/conn] :as cfg}]
|
(db/tx-run! cfg (fn [{:keys [::db/conn] :as cfg}]
|
||||||
(files/check-edition-permissions! conn profile-id file-id)
|
|
||||||
(when-not (db/read-only? conn)
|
|
||||||
(-> cfg
|
(-> cfg
|
||||||
(update ::sto/storage media/configure-assets-storage conn)
|
(update ::sto/storage media/configure-assets-storage conn)
|
||||||
(delete-file-object-thumbnail! file-id object-id))
|
(delete-file-object-thumbnail! file-id object-id))
|
||||||
nil))))
|
nil)))
|
||||||
|
|
||||||
;; --- MUTATION COMMAND: create-file-thumbnail
|
;; --- MUTATION COMMAND: create-file-thumbnail
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue