masonjm 2004/07/27 13:35:19 Modified: src/share/org/apache/slide/security SecurityImpl.java Log: Changed enumeratePermissions() so that permissions that come from the object (non-inherited) are explicitly marked as not being inherited. See http://www.mail-archive.com/[EMAIL PROTECTED]/msg10380.html for more information. Revision Changes Path 1.50 +7 -4 jakarta-slide/src/share/org/apache/slide/security/SecurityImpl.java Index: SecurityImpl.java =================================================================== RCS file: /home/cvs/jakarta-slide/src/share/org/apache/slide/security/SecurityImpl.java,v retrieving revision 1.49 retrieving revision 1.50 diff -u -r1.49 -r1.50 --- SecurityImpl.java 24 Jun 2004 13:18:53 -0000 1.49 +++ SecurityImpl.java 27 Jul 2004 20:35:19 -0000 1.50 @@ -779,6 +779,9 @@ while (permEnum.hasMoreElements()) { NodePermission perm = (NodePermission)permEnum.nextElement(); if (object.equals(oNode.getUri())) { + // FIXME A node should not be able to inherit permissions from itself. + // Hide this from the client when it happens. + perm.setInheritedFrom(null); permissions.add(perm); } else if (perm.isInheritable()) {
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
