[CalendarServer-changes] [9439] CalendarServer/trunk/twistedcaldav/method/report_common.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Jul 12 12:54:09 PDT 2012


Revision: 9439
          http://trac.macosforge.org/projects/calendarserver/changeset/9439
Author:   cdaboo at apple.com
Date:     2012-07-12 12:54:09 -0700 (Thu, 12 Jul 2012)
Log Message:
-----------
Organizer can now see their own rich freebusy.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/method/report_common.py

Modified: CalendarServer/trunk/twistedcaldav/method/report_common.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/method/report_common.py	2012-07-12 19:53:04 UTC (rev 9438)
+++ CalendarServer/trunk/twistedcaldav/method/report_common.py	2012-07-12 19:54:09 UTC (rev 9439)
@@ -495,8 +495,11 @@
     do_event_details = False
     if event_details is not None and organizer_principal is not None and userPrincipal is not None:
          
-        # Check of organizer is a delegate of attendee
-        do_event_details = (yield organizer_principal.isProxyFor(userPrincipal))
+        # Check of organizer is a delegate of attendee, or organizer is attendee
+        if organizer_principal == userPrincipal:
+            do_event_details = True
+        else:
+            do_event_details = (yield organizer_principal.isProxyFor(userPrincipal))
 
     # Try cache
     resources = (yield FBCacheEntry.getCacheEntry(calresource, useruid, timerange)) if config.EnableFreeBusyCache else None
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120712/e9c9a2c2/attachment-0001.html>


More information about the calendarserver-changes mailing list