feat(core): Add SOGoDisableSharing option to disable sharing for mail, contacts and calendar

This commit is contained in:
smizrahi
2022-12-12 12:03:59 +01:00
parent 5d6b40c8cf
commit 435495f007
10 changed files with 119 additions and 22 deletions
+14
View File
@@ -493,6 +493,20 @@ Class SOGoContactSourceFolderK, SOGoGCSFolderK;
return [self responseWithStatus: 204];
}
- (BOOL) isContactSharingEnabled {
BOOL result;
SOGoSystemDefaults *sd;
result = YES;
sd = [SOGoSystemDefaults sharedSystemDefaults];
if (nil != [sd disableSharing]
&& NSNotFound != [[sd disableSharing] indexOfObject: kDisableSharingContacts]) {
result = NO;
}
return result;
}
- (id) defaultAction
{
// NSString *check;