diff --git a/ChangeLog b/ChangeLog index 516357d9a..c0499a61d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-02-05 Wolfgang Sourdeau + + * SoObjects/Appointments/SOGoAppointmentObject.m + ([SOGoAppointmentObject -roleOfUser:logininContext:context]): if a + user is not an organizer nor a participant, he is declared as + "Owner" if he owns the calendar the entry where the entry is + contained. Other cases should not be possible. + 2007-02-02 Wolfgang Sourdeau * UI/Contacts/UIxContactEditor.m: display and handle the new diff --git a/SoObjects/Appointments/SOGoAppointmentObject.m b/SoObjects/Appointments/SOGoAppointmentObject.m index cd2d90706..e9c9b73f5 100644 --- a/SoObjects/Appointments/SOGoAppointmentObject.m +++ b/SoObjects/Appointments/SOGoAppointmentObject.m @@ -550,6 +550,8 @@ role = @"Organizer"; else if ([event isParticipant: email]) role = @"Participant"; + else if ([[[self container] ownerInContext: nil] isEqualToString: login]) + role = @"SoRole_Owner"; else role = nil;