Hello,

   I was wondering about the following in AclImpl.java method:

 public boolean isGranted(Permission[] permission, Sid[] sids, boolean 
administrativeMode)

For the following line

 if ((ace.getPermission().getMask() == permission[i].getMask()) && 
ace.getSid().equals(sids[x]))

Shouldn't this be a bitwise & operation that looks something like the following:

 if (( (ace.getPermission().getMask() & permission[i].getMask()) == 
permission[i].getMask() ) && ace.getSid().equals(sids[x]))


Best,
-Nate



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer

Reply via email to