This is actual code inside a portlet doEdit() :
if(request.getUserPrincipal() != null)
{
Principal p = request.getUserPrincipal();
getPortletContext().log("UserName : " + p.getName());
getPortletContext().log(" In Admins role : " +
request.isUserInRole("Admins"));
getPortletContext().log(" In Users role : " +
request.isUserInRole("Users"));
}
Every call to "isUserInRole" return false
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869049#3869049
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869049
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development