Monotone-Parent: 47d5453356cf458cfb6ee7f675203b71762bc4f6

Monotone-Revision: 9b0cbf04f17375b7cfda64246e43f61e206523e2

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-01-04T20:03:02
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-01-04 20:03:02 +00:00
parent 8a351f7333
commit 6d8b404c3c
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -1,5 +1,9 @@
2007-01-04 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* 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:.
+5
View File
@@ -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;