add role list to session
This commit is contained in:
parent
8ac33ad829
commit
048266f0aa
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@
|
||||||
(cond-> (some (partial = (select-keys user [:zeusid :name])) admins)
|
(cond-> (some (partial = (select-keys user [:zeusid :name])) admins)
|
||||||
(->
|
(->
|
||||||
(assoc-in [:user :admin] {:enabled false})
|
(assoc-in [:user :admin] {:enabled false})
|
||||||
|
(assoc-in [:user :roles] #{:admin})
|
||||||
(assoc :identity "foo"))))]
|
(assoc :identity "foo"))))]
|
||||||
(-> (found redirect-url)
|
(-> (found redirect-url)
|
||||||
(assoc :session new-session))))
|
(assoc :session new-session))))
|
||||||
|
|
Loading…
Reference in a new issue