RE: [rules-users] generalize a rule in security.drl file

2007-11-08 Thread Anstis, Michael (M.)
The use of regular expressions in your pattern match would help. rule GeneralisedRestrictAccessClient when check : PermissionCheck( name matches /*Edit.xhtml, action == render ) then check.grant(); end You'd best check the RegEx syntax though! Cheers, Mike _ From:

Re: [rules-users] generalize a rule in security.drl file

2007-11-08 Thread Christian Spurk
Hi Mohamed! Mohamed Mhissen wrote: I use restrictions to control access to my pages. [...] rule RestrictAccessClientEdit when check: PermissionCheck(name == /ClientEdit.xhtml, action == render) Role(name == admin) then