mirror of
https://github.com/penpot/penpot.git
synced 2026-02-25 22:04:14 +00:00
🐛 Properly send 403 on not authorized request.
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user