mirror of
https://github.com/penpot/penpot.git
synced 2025-03-11 07:11:32 -05:00
🐛 Fix auth flag handling on rpc metadata
This commit is contained in:
parent
69556f19ac
commit
9162f0e1fd
1 changed files with 2 additions and 2 deletions
|
@ -162,10 +162,10 @@
|
||||||
|
|
||||||
|
|
||||||
(defn- wrap-authentication
|
(defn- wrap-authentication
|
||||||
[_ f {:keys [::auth] :as mdata}]
|
[_ f mdata]
|
||||||
(fn [cfg params]
|
(fn [cfg params]
|
||||||
(let [profile-id (::profile-id params)]
|
(let [profile-id (::profile-id params)]
|
||||||
(if (and auth (not (uuid? profile-id)))
|
(if (and (::auth mdata true) (not (uuid? profile-id)))
|
||||||
(p/rejected
|
(p/rejected
|
||||||
(ex/error :type :authentication
|
(ex/error :type :authentication
|
||||||
:code :authentication-required
|
:code :authentication-required
|
||||||
|
|
Loading…
Add table
Reference in a new issue