mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-04 11:05:27 +00:00
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:
@@ -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:.
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user