added apply all rule.

This commit is contained in:
Bryce Covert
2020-01-24 19:28:52 -08:00
parent bb40bff203
commit 54fc606cf0
8 changed files with 85 additions and 19 deletions

View File

@@ -44,6 +44,7 @@
(defn assert-admin [id]
(println "role" id)
(when-not (= "admin" (:user/role id))
(throw-unauthorized)))