From e0b7efbbbfd266428a0f9ab42ae3686b9b96fb1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20J=2E=20Hern=C3=A1ndez=20Blasco?= Date: Thu, 7 Jan 2016 01:21:25 +0100 Subject: [PATCH] oc-calendar: Set simple and Detailed Free/Busy permission level By restricting when FolderVisible right is set to the following rights: * ReadAny * EditAny * DeleteAny This goes beyond what specs says about when FolderVisible right is mandatory but there is no more information stored in SOGo (no possibility to set FolderVisible specific right) See [MS-OXCPERM] Section 2.2.6 for more details --- OpenChange/MAPIStoreCalendarFolder.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenChange/MAPIStoreCalendarFolder.m b/OpenChange/MAPIStoreCalendarFolder.m index fc4ec5b76..f7b84d51e 100644 --- a/OpenChange/MAPIStoreCalendarFolder.m +++ b/OpenChange/MAPIStoreCalendarFolder.m @@ -135,7 +135,7 @@ if ([roles containsObject: SOGoCalendarRole_ConfidentialDAndTViewer]) rights |= RightsFreeBusyDetailed; - if (rights != 0) + if ((rights & RightsReadItems) != 0 || (rights & RightsCreateItems) != 0 || (rights & RightsDeleteAll) != 0) rights |= RoleNone; /* actually "folder visible" */ // [self logWithFormat: @"rights for roles (%@) = %.8x", roles, rights];