[CalendarServer-changes] [11513] CalendarServer/branches/users/cdaboo/CalendarServer-5.0-podfix/ twistedcaldav/sharing.py
source_changes at macosforge.org
source_changes at macosforge.org
Sun Jul 14 08:40:47 PDT 2013
Revision: 11513
http://trac.calendarserver.org//changeset/11513
Author: cdaboo at apple.com
Date: 2013-07-14 08:40:47 -0700 (Sun, 14 Jul 2013)
Log Message:
-----------
Another quick fix for shared calendars from users now (even more) disabled for calendaring, but still in the DB.
Modified Paths:
--------------
CalendarServer/branches/users/cdaboo/CalendarServer-5.0-podfix/twistedcaldav/sharing.py
Modified: CalendarServer/branches/users/cdaboo/CalendarServer-5.0-podfix/twistedcaldav/sharing.py
===================================================================
--- CalendarServer/branches/users/cdaboo/CalendarServer-5.0-podfix/twistedcaldav/sharing.py 2013-07-14 04:34:34 UTC (rev 11512)
+++ CalendarServer/branches/users/cdaboo/CalendarServer-5.0-podfix/twistedcaldav/sharing.py 2013-07-14 15:40:47 UTC (rev 11513)
@@ -1084,6 +1084,9 @@
# get the shared object's URL
sharer = self.principalForUID(sharerHomeChild.viewerHome().uid())
+ from twistedcaldav.directory.principal import DirectoryCalendarPrincipalResource
+ if not isinstance(sharer, DirectoryCalendarPrincipalResource):
+ returnValue(None)
if not request:
# FIXME: Fake up a request that can be used to get the sharer home
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130714/5750efaf/attachment.html>
More information about the calendarserver-changes
mailing list