[CalendarServer-changes] [8973] CalendarServer/trunk/twistedcaldav/sharing.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Apr 3 14:31:10 PDT 2012
Revision: 8973
http://trac.macosforge.org/projects/calendarserver/changeset/8973
Author: sagen at apple.com
Date: 2012-04-03 14:31:10 -0700 (Tue, 03 Apr 2012)
Log Message:
-----------
Handle case where wiki says no-access
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/sharing.py
Modified: CalendarServer/trunk/twistedcaldav/sharing.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/sharing.py 2012-04-03 21:07:40 UTC (rev 8972)
+++ CalendarServer/trunk/twistedcaldav/sharing.py 2012-04-03 21:31:10 UTC (rev 8973)
@@ -313,7 +313,11 @@
if inviteAccess in ("read-write", "read-write-schedule",):
userprivs.append(element.Privilege(element.Write()))
proxyprivs = list(userprivs)
- proxyprivs.remove(element.Privilege(element.ReadACL()))
+ try:
+ proxyprivs.remove(element.Privilege(element.ReadACL()))
+ except ValueError:
+ # If wiki says no-access then ReadACL won't be in the list
+ pass
aces = (
# Inheritable specific access for the resource's associated principal.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120403/2556283d/attachment-0001.html>
More information about the calendarserver-changes
mailing list