[jboss-user] [JBoss Portal] - Re: authorisation facilities access from within portlet
do-not-reply at jboss.com
Thu Jan 11 05:33:50 EST 2007
you can check the permission on a role by using the request.isUserInRole("myRole")
It would return true if the user has the role "myRole".
Would that be enough for you ?
(if you define new roles other than "user" and "admin" you need to define them in portlet.xml so that it can work. See the JSR 168 specifications for more details.)
I hope this will help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000330#4000330
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000330
More information about the jboss-user