Changeset 47748

Show
Ignore:
Timestamp:
08/01/06 17:57:00 (4 years ago)
Author:
lregebro
Message:

Fix for #1719.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Zope2/CalZope/trunk/CHANGES

    r47736 r47748  
    1515  (i.e. do not have it's main attendee as organizer) since ical client have 
    1616  already have the ability to subscribe to those calendars directly 
     17- #1719: The rights you have on an event is now extended with the rights 
     18  you have on the attendees. This fixes a permission problem when  
     19  using calendars stacking. 
    1720New internal features: 
    1821~~~~~~~~~~~~~~~~~~~~~~ 
  • Zope2/CalZope/trunk/storage.py

    r47550 r47748  
    309309        event_attendees = self.getAttendeeIds() 
    310310        for id in attendees: 
    311             if id in event_attendees and 'EventParticipant' not in roles
     311            if id in event_attendees
    312312                roles.append('EventParticipant') 
     313         
     314        for id in event_attendees: 
     315            roles.extend(current_user.getRolesInContext( 
     316                attendee_src.getMainCalendarForAttendeeId(id))) 
    313317 
    314318        return {current_user.getId(): list(roles)}