Hello, I think the problem could not be solved yet because userB's TorqueUser instance is session record, which is cached and should not synchronized automatically even if userA modifys his record in database.
Am I right? Regards Weffen 在 2012-1-12,3:37,Thomas Vandahl <[email protected]> 写道: > On 11.01.12 20:04, Weffen Cheung wrote: >> Sometimes I update a user record not only after the user login. For example, >> I want to update userB's record when userA login. For this case, we cannot >> use data.getUser().save(), is it right? > > Well, there is TurbineSecurity.getUser(userName) which gives you any > user from your backend. The clean solution would be to use > TurbineSecurity.saveUser(user) then to make your modifications persistent. > > The only remaining question would be what userB is going to say if userA > modifies his email address, IOW a permission issue. > > Bye, Thomas. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
