i want a security rule which depends on the user name.
i tried
package Permissions;
import java.security.Principal;
import org.jboss.seam.security.PermissionCheck;
import org.jboss.seam.security.Identity;
rule CanDo
when
c: PermissionCheck(name == "object",action =="dosomething")
Identity(username=="MyName")
then
c.grant();
end;
but it didn't work.
is Identity(username=="MyName")? correct?
is there a way to debug the rules? or give a system.out?