[jboss-user] [JBoss Seam] - Re: How to call a rule into Restrict annotation ?

shane.bryzak@jboss.com do-not-reply at jboss.com
Tue Oct 30 19:21:57 EDT 2007


You've got a call to c.grant() in the outcome of your rule, however you don't have a corresponding PermissionCheck in the condition section:

rule "Can User Access"
  | when
  |   c: PermissionCheck(name == "objectName", action == "access", 
  |   eval( new Date().before( new Date( Date.parse( "10/31/2007" ) ) )
  | then
  |   c.grant();
  | end; 

The @Restrict then looks something like this:

@Restrict("#{s:hasPermission('objectName', 'access', null)}")

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

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



More information about the jboss-user mailing list