add role list to session

This commit is contained in:
flynn 2019-06-09 00:52:31 +02:00
parent 8ac33ad829
commit 048266f0aa

View file

@ -16,6 +16,7 @@
(cond-> (some (partial = (select-keys user [:zeusid :name])) admins)
(->
(assoc-in [:user :admin] {:enabled false})
(assoc-in [:user :roles] #{:admin})
(assoc :identity "foo"))))]
(-> (found redirect-url)
(assoc :session new-session))))