added apply all rule.
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
|
||||
|
||||
(defn assert-admin [id]
|
||||
(println "role" id)
|
||||
(when-not (= "admin" (:user/role id))
|
||||
(throw-unauthorized)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user