diff --git a/ChangeLog b/ChangeLog index 8763230a1..c1a31efa0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-01-04 Wolfgang Sourdeau + * SoObjects/SOGo/SOGoUserFolder.m ([SOGoUserFolder + -roleOfUser:uidinContext:context]): set role of current user to + "Assistant" if the object that is accessed is "freebusy.ifb". + * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder -lookupCalendarFolderForUID:uid]): method moved from UI/Scheduler/UIxCalView:calendarFolderForUID:. diff --git a/SoObjects/SOGo/SOGoUserFolder.m b/SoObjects/SOGo/SOGoUserFolder.m index 85b084927..5f4cb3a37 100644 --- a/SoObjects/SOGo/SOGoUserFolder.m +++ b/SoObjects/SOGo/SOGoUserFolder.m @@ -181,6 +181,9 @@ return obj; } +/* FIXME: here is a vault of hackish ways to gain access to subobjects by + granting ro access to the homepage depending on the subobject in question. + This is wrong and dangerous. */ - (NSString *) roleOfUser: (NSString *) uid inContext: (WOContext *) context { @@ -204,6 +207,8 @@ || [roles containsObject: SOGoRole_Delegate]) role = SOGoRole_Assistant; } + else if ([objectName isEqualToString: @"freebusy.ifb"]) + role = SOGoRole_Assistant; } return role;