mirror of
https://github.com/penpot/penpot.git
synced 2025-07-24 02:37:26 +02:00
✨ Reuse permission from rpc/cond middleware for get-file rpc method
This commit is contained in:
parent
22d7cfc7fa
commit
40d7bb04b4
3 changed files with 17 additions and 5 deletions
|
@ -39,7 +39,6 @@
|
|||
(t/is (nil? error))
|
||||
(t/is (map? result))
|
||||
(t/is (contains? (meta result) :app.http/headers))
|
||||
(t/is (contains? (meta result) :app.rpc.cond/key))
|
||||
|
||||
(let [etag (-> result meta :app.http/headers (get "etag"))
|
||||
{:keys [error result]} (th/command! (assoc params ::cond/key etag))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue