mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-15 05:14:53 +00:00
feat(core): Add SOGoDisableSharing option to disable sharing for mail, contacts and calendar
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user