[jboss-user] [JBoss Seam] - Re: security-config.xml equivalent in 2.0?

samdoyle do-not-reply at jboss.com
Wed Oct 3 20:41:27 EDT 2007


This works awesome though, thanks again!

S.D.

"shane.bryzak at jboss.com" wrote : What does the source for your rule look like?  It should be something like this:
  | 
  | rule IsUserSuperUser
  |   |   no-loop
  |   |   activation-group "permissions"
  |   | when
  |   |   check: PermissionCheck(name == "rolecheck", action == "super-user", granted == false)
  |   |   Role(name == 'super-user')
  |   | then
  |   |   check.grant();
  |   | end
  | 
  | In this case the expression would be hasPermission('rolecheck', 'super-user', null).

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

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



More information about the jboss-user mailing list