[Yanel-dev] Always show most recent versions even if toolbar is not
enabled
Michael Wechner
michael.wechner at wyona.com
Fri Feb 6 14:43:07 CET 2009
Hi
Somebody recently asked me that they would also like to give access to
the most recent versions of pages to people who do not have the right to
see the toolbar.
Currently this coupled to the toolbar (see YanelServlet)
private Environment getEnvironment(HttpServletRequest request,
HttpServletResponse response) throws ServletException {
Identity identity;
try {
identity = getIdentity(request);
Realm realm = map.getRealm(request.getServletPath());
String stateOfView = StateOfView.AUTHORING;
if (isToolbarEnabled(request)) {
stateOfView = StateOfView.AUTHORING;
} else {
stateOfView = StateOfView.LIVE;
}
and hence the above request is not possible.
I think it would actually make sense to implement that people (in
particular "pure" reviewers) can also see the "staging" view event it
they do not have access to the toolbar.
WDYT?
If yes, how do we be best provide this functionality?
Also by attaching a flag to the session?
Thanks
Michael
More information about the Yanel-development
mailing list