mkurz / deadbolt-2-scala

Idiomatic Scala API for Deadbolt 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Accessing Deadbolt user from within Controller for Scala

n0tel opened this issue · comments

How i can get User from within Controller?

Is it possible to access this user in my controllers to avoid retrieving the user twice per request?

I have found this question, but he did not answer the question for Scala.
http://stackoverflow.com/questions/16857677/accessing-deadbolt-user-from-within-controller

I've got the same question as you, some hints would be greatly appreciated!

Thanks in advance and also thanks for writing this great plugin !

@wamd-bozem pay attention to pull-request please
#9

This is addressed in from 2.4.4 onwards