In 3.0, the populateContext() method looks like the following:
TurbinePullService {
public void populateContext(TemplateContext context, RunData data)
{
populateWithRequestTools(context, data);
// session tools (whether session-only or persistent are
// very similar, so the same method is used - the
// boolean parameter indicates whether get/setPerm is to be used
// rather than get/setTemp)
User user = data.getUser();
if (user != null)
{
populateWithSessionTools(sessionTools, context, user, false);
if (user.hasLoggedIn())
{
populateWithSessionTools(persistentTools, context, user, true);
}
}
}
}
In 2.0, user.hasLoggedIn() does not gate population of the context
with session tools from the User's permanent storage (so it always
happens).
Are both these implementations correct for their respective versions,
or is a modification to one of them in order?
Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]