0 Replies Latest reply on Nov 21, 2008 11:35 AM by Sascha Janz

    security rule depending on user name

    Sascha Janz Master
      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?