I use restrictions to control access to my pages.

In my security.drl file, I have :

 *Code:*

rule RestrictAccessClientEdit
        when
                check: PermissionCheck(name == "/ClientEdit.xhtml", action == 
"render")
                Role(name == "admin")
        then
                check.grant();

rule RestrictAccessOrderEdit
        when
                check: PermissionCheck(name == "/OrderEdit.xhtml", action == 
"render")
                Role(name == "admin")
        then
                check.grant();
end;    



I want to generalize this restriction so to apply it to all pages
publishing: *Edit.xhtml

I tried like that :

*Code:*
 check: PermissionCheck(name == "/*Edit.xhtml", action == "render")

Any help would be very welcome,
Thanks,

-- 
Mohamed Mhissen
[EMAIL PROTECTED]
+33.6.65.04.28.79
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to