[CalendarServer-changes] [10594] CalendarServer/branches/users/glyph/unshare-when-access-revoked

source_changes at macosforge.org source_changes at macosforge.org
Mon Jan 28 19:29:23 PST 2013


Revision: 10594
          http://trac.calendarserver.org//changeset/10594
Author:   glyph at apple.com
Date:     2013-01-28 19:29:22 -0800 (Mon, 28 Jan 2013)
Log Message:
-----------
Check access control in child lookup.

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/unshare-when-access-revoked/twistedcaldav/sharing.py

Property Changed:
----------------
    CalendarServer/branches/users/glyph/unshare-when-access-revoked/

Modified: CalendarServer/branches/users/glyph/unshare-when-access-revoked/twistedcaldav/sharing.py
===================================================================
--- CalendarServer/branches/users/glyph/unshare-when-access-revoked/twistedcaldav/sharing.py	2013-01-29 03:29:21 UTC (rev 10593)
+++ CalendarServer/branches/users/glyph/unshare-when-access-revoked/twistedcaldav/sharing.py	2013-01-29 03:29:22 UTC (rev 10594)
@@ -1067,6 +1067,9 @@
         share = yield self._shareForHomeChild(child._newStoreObject, request)
         if share:
             child.setShare(share)
+            access = yield child._checkAccessControl()
+            if access is None:
+                returnValue(None)
         returnValue(child)
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130128/e6f7d242/attachment.html>


More information about the calendarserver-changes mailing list