public void doView(RenderRequest pRequest, RenderResponse pResponse) throws 
PortletException, IOException {
  |         PortletContext context = getPortletContext();
  |         PortletRequestDispatcher rd = 
context.getRequestDispatcher(HELLO_TEMPLATE);
  | 
  |         pRequest.setAttribute("UserName", pRequest.getRemoteUser());
  |         pRequest.setAttribute("IsUserInAdminRole", 
String.valueOf(pRequest.isUserInRole("Administrators")));
  |         pRequest.setAttribute("IsUserInRole", 
String.valueOf(pRequest.isUserInRole("ByBusinessRole")));
  |         
  |         rd.include(pRequest, pResponse);
  |     }


IsUserInAdminRole and IsUserInRole are FALSE for admin and for user which is in 
ByBusinessRole

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3882225#3882225

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3882225


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to