From 6d8b404c3c97cb7425e0c8a9c6f14601533a0708 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 4 Jan 2007 20:03:02 +0000 Subject: [PATCH] Monotone-Parent: 47d5453356cf458cfb6ee7f675203b71762bc4f6 Monotone-Revision: 9b0cbf04f17375b7cfda64246e43f61e206523e2 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-01-04T20:03:02 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ SoObjects/SOGo/SOGoUserFolder.m | 5 +++++ 2 files changed, 9 insertions(+) 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;