Add API to allow complete roundtrip from Authentication to User
Without this change you need to do: ``` User user; final SecurityContext oldContext = ACL.impersonate(a); try { user = User.current(); } finally { SecurityContextHolder.setContext(oldContext); } ``` Which seems incredibly wasteful. Or else you need to replicate the logic in User.current() which makes that code hard to change.
Loading
Please register or sign in to comment