[CalendarServer-changes] [7484] CalendarServer/branches/users/glyph/new-export/txdav/caldav/ datastore/util.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon May 16 07:49:08 PDT 2011
Revision: 7484
http://trac.macosforge.org/projects/calendarserver/changeset/7484
Author: glyph at apple.com
Date: 2011-05-16 07:49:07 -0700 (Mon, 16 May 2011)
Log Message:
-----------
honor asAdmin flag.
Modified Paths:
--------------
CalendarServer/branches/users/glyph/new-export/txdav/caldav/datastore/util.py
Modified: CalendarServer/branches/users/glyph/new-export/txdav/caldav/datastore/util.py
===================================================================
--- CalendarServer/branches/users/glyph/new-export/txdav/caldav/datastore/util.py 2011-05-16 14:48:54 UTC (rev 7483)
+++ CalendarServer/branches/users/glyph/new-export/txdav/caldav/datastore/util.py 2011-05-16 14:49:07 UTC (rev 7484)
@@ -252,8 +252,8 @@
"""
component = yield self.component()
calendar = self.calendar()
- isOwner = (calendar._owned and
- calendar.ownerCalendarHome().uid() == accessUID)
+ isOwner = asAdmin or (calendar._owned and
+ calendar.ownerCalendarHome().uid() == accessUID)
for filter in [PrivateEventFilter(self.accessMode, isOwner),
PerUserDataFilter(accessUID)]:
component = filter.filter(component)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110516/5ddf7cd7/attachment.html>
More information about the calendarserver-changes
mailing list