mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-22 10:58:12 +00:00
feat(core): Add SOGoDisableSharing option to disable sharing for mail, contacts and calendar
This commit is contained in:
1 parent
5d6b40c8cf
commit
435495f007
10 files changed
+119
-22
No files matched your search
@@ -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