[CalendarServer-changes] [13267] CalendarServer/trunk/txdav/caldav/datastore/sql.py

source_changes at macosforge.org source_changes at macosforge.org
Sun Apr 13 07:50:07 PDT 2014


Revision: 13267
          http://trac.calendarserver.org//changeset/13267
Author:   cdaboo at apple.com
Date:     2014-04-13 07:50:07 -0700 (Sun, 13 Apr 2014)
Log Message:
-----------
Make sure that sharees cannot delete scheduled events.

Modified Paths:
--------------
    CalendarServer/trunk/txdav/caldav/datastore/sql.py

Modified: CalendarServer/trunk/txdav/caldav/datastore/sql.py
===================================================================
--- CalendarServer/trunk/txdav/caldav/datastore/sql.py	2014-04-13 14:49:33 UTC (rev 13266)
+++ CalendarServer/trunk/txdav/caldav/datastore/sql.py	2014-04-13 14:50:07 UTC (rev 13267)
@@ -3100,6 +3100,13 @@
 
         # Do scheduling
         if scheduler is not None:
+            # Cannot do implicit in sharee's shared calendar
+            if not self.calendar().owned():
+                scheduler.setSchedulingNotAllowed(
+                    ShareeAllowedError,
+                    "Sharee's cannot schedule",
+                )
+
             yield scheduler.doImplicitScheduling()
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140413/97c2d856/attachment.html>


More information about the calendarserver-changes mailing list