You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by di...@apache.org on 2001/09/21 02:38:35 UTC

cvs commit: jakarta-slide/src/webdav/server/org/apache/slide/webdav/method AclMethod.java

dirkv       01/09/20 17:38:34

  Modified:    src/webdav/server/org/apache/slide/webdav/method
                        AclMethod.java
  Log:
  add self principal
  
  Revision  Changes    Path
  1.11      +5 -3      jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/AclMethod.java
  
  Index: AclMethod.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/AclMethod.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- AclMethod.java	2001/08/01 16:30:58	1.10
  +++ AclMethod.java	2001/09/21 00:38:34	1.11
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/AclMethod.java,v 1.10 2001/08/01 16:30:58 cmlenz Exp $
  - * $Revision: 1.10 $
  - * $Date: 2001/08/01 16:30:58 $
  + * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/AclMethod.java,v 1.11 2001/09/21 00:38:34 dirkv Exp $
  + * $Revision: 1.11 $
  + * $Date: 2001/09/21 00:38:34 $
    *
    * ====================================================================
    *
  @@ -456,6 +456,8 @@
                   return getSlidePath(href.getFirstChild().getNodeValue());
           } else if (hasChild(principal, NodeProperty.DEFAULT_NAMESPACE, "all")) {
               return "nobody";
  +        } else if (hasChild(principal, NodeProperty.DEFAULT_NAMESPACE, "self")) {
  +            return "~";
           } else if (hasChild(principal, NodeProperty.DEFAULT_NAMESPACE, "unauthenticated")) {
               return token.getNamespaceConfig().getUsersPath() + "/" +
                      token.getNamespaceConfig().getGuestPath();