mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-27 14:25:32 +00:00
oc-calendar: Enable editor role
When Outlook sets the editor role, the FreeBusyDetailed and FreeBusySimple right flags are set as Full Details are available. When we store this information in SOGo, the SOGoCalendarRole_PublicModifier, SOGoCalendarRole_PrivateModifier and SOGoCalendarRole_ConfidentialModifier are stored as well as the free busy related roles, but as [SOGoAppointmentFolder aclsForUser:forObjectAtPath] only returns the highest access rights, we have to set as well the FreeBusy flags. More details on [MS-OXCPERM] Section 2.2.6
This commit is contained in:
@@ -121,7 +121,7 @@
|
||||
if ([roles containsObject: SOGoCalendarRole_PublicModifier]
|
||||
&& [roles containsObject: SOGoCalendarRole_PrivateModifier]
|
||||
&& [roles containsObject: SOGoCalendarRole_ConfidentialModifier])
|
||||
rights |= RightsReadItems | RightsEditAll | RightsEditOwn;
|
||||
rights |= RightsReadItems | RightsEditAll | RightsEditOwn | RightsFreeBusySimple | RightsFreeBusyDetailed;
|
||||
else if ([roles containsObject: SOGoCalendarRole_PublicViewer]
|
||||
&& [roles containsObject: SOGoCalendarRole_PrivateViewer]
|
||||
&& [roles containsObject: SOGoCalendarRole_ConfidentialViewer])
|
||||
|
||||
Reference in New Issue
Block a user