This content has been marked as final.
Show 1 reply
-
1. Re: How to call a rule into Restrict annotation ?
shane.bryzak Oct 30, 2007 7:21 PM (in response to paulovittor23)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)}")