[CalendarServer-changes] [940] CalendarServer/branches/users/cdaboo/cuproxy-857/twistedcaldav/root. py

source_changes at macosforge.org source_changes at macosforge.org
Fri Jan 5 11:45:59 PST 2007


Revision: 940
          http://trac.macosforge.org/projects/calendarserver/changeset/940
Author:   cdaboo at apple.com
Date:     2007-01-05 11:45:59 -0800 (Fri, 05 Jan 2007)

Log Message:
-----------
Principal resources are now collections.

Modified Paths:
--------------
    CalendarServer/branches/users/cdaboo/cuproxy-857/twistedcaldav/root.py

Modified: CalendarServer/branches/users/cdaboo/cuproxy-857/twistedcaldav/root.py
===================================================================
--- CalendarServer/branches/users/cdaboo/cuproxy-857/twistedcaldav/root.py	2007-01-05 19:44:54 UTC (rev 939)
+++ CalendarServer/branches/users/cdaboo/cuproxy-857/twistedcaldav/root.py	2007-01-05 19:45:59 UTC (rev 940)
@@ -69,7 +69,7 @@
         def _checkSACLCb((authnUser, authzUser)):
             # Figure out the "username" from the davxml.Principal object
             username = authzUser.children[0].children[0].data
-            username = username.split('/')[-1]
+            username = username.rstrip('/').split('/')[-1]
             
             if RootResource.CheckSACL(username, self.saclService) != 0:
                 return Failure(HTTPError(403))

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070105/da4600bd/attachment.html


More information about the calendarserver-changes mailing list