hello,

wondering why the getAuthenticatedUser() was changed in RollerSession, as
this now seems an expensive db operation,  eg is called by the menu system
etc.

old version:
public UserData getAuthenticatedUser() {
        return authenticatedUser;
    }

3.0> version:
    public UserData getAuthenticatedUser() {
        
        UserData authenticUser = null;
        if(userId != null) {
            try {
                UserManager mgr =
RollerFactory.getRoller().getUserManager();
                authenticUser = mgr.getUser(userId);
            } catch (RollerException ex) {
                log.warn("Error looking up authenticated user "+userId, ex);
            }
        }
        
        return authenticUser;
    }

Cheers Greg.
-- 
View this message in context: 
http://www.nabble.com/RollerSession-tf3486135s12275.html#a9732510
Sent from the Roller - Dev mailing list archive at Nabble.com.

Reply via email to