This content has been marked as final.
Show 2 replies
-
1. Re: How to test role of a user?
theute Oct 21, 2008 2:16 PM (in response to natoine)You must first define the role in your portlet.xml before you can use this method. Please check the portlet spec
-
2. Re: How to test role of a user?
natoine Oct 22, 2008 4:38 PM (in response to natoine)well i have add these lines in my portlet.xml
<security-role-ref>
<role-name>admin</role-name>
<role-link>Administrator</role-link>
</security-role-ref>
But i still have a false return when i invoke the isUserInRole method.