mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 19:28:12 +00:00
🐛 Properly send 403 on not authorized request.
This commit is contained in:
parent
dabbbc2e09
commit
fee2eea87c
@ -56,7 +56,7 @@
|
||||
(spx/terminate (assoc data ::unauthorized true)))))
|
||||
(vc/handle-on-context))))
|
||||
:leave (fn [data]
|
||||
(if (and (::unauthorized data) (:response data))
|
||||
(if (::unauthorized data)
|
||||
(update data :response
|
||||
assoc :status 403 :body {:type :authentication
|
||||
:code :unauthorized})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user