[CalendarServer-changes] [3757] CalendarServer/trunk/twistedcaldav/method/copymove.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Feb 26 17:09:08 PST 2009


Revision: 3757
          http://trac.macosforge.org/projects/calendarserver/changeset/3757
Author:   wsanchez at apple.com
Date:     2009-02-26 17:09:07 -0800 (Thu, 26 Feb 2009)
Log Message:
-----------
No COPY for calendar collections

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/method/copymove.py

Modified: CalendarServer/trunk/twistedcaldav/method/copymove.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/method/copymove.py	2009-02-26 21:56:18 UTC (rev 3756)
+++ CalendarServer/trunk/twistedcaldav/method/copymove.py	2009-02-27 01:09:07 UTC (rev 3757)
@@ -47,6 +47,10 @@
     the destination if its a calendar collection.
     """
 
+    # Copy of calendar collections isn't allowed.
+    if isPseudoCalendarCollectionResource(self):
+        returnValue(responsecode.FORBIDDEN)
+
     result, sourcecal, sourceparent, destination_uri, destination, destinationcal, destinationparent = (yield checkForCalendarAction(self, request))
     if not result or not destinationcal:
         # Do default WebDAV action
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20090226/76dc8e21/attachment-0001.html>


More information about the calendarserver-changes mailing list