Burt Beckwith wrote:
> Use this instead:
>
> def user = User.get(authenticateService.principal().domainClass.id)
That's all very well, but the trouble with that although user and
principal().domainClass refer to the same entity in the database they
are different object references. I can make changes to user and save it
to the database but the changes won't be reflected in the principal
until the user logs out and in again. Re-attaching the existing object
instead means that changes take effect immediately.
Ian
--
Ian Roberts | Department of Computer Science
i.roberts@... | University of Sheffield, UK
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email