reimplemented security
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
(wrap-routes
|
||||
(context "/graphql" []
|
||||
(GET "/" {:keys [query-params] :as r}
|
||||
(when (= "none" (:role (:identity r)))
|
||||
(when (= "none" (:user/role (:identity r)))
|
||||
(throw-unauthorized))
|
||||
|
||||
(try
|
||||
|
||||
Reference in New Issue
Block a user