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
+15
View File
@@ -42,6 +42,7 @@
#import <SOGo/NSString+Utilities.h>
#import <SOGo/NSDictionary+Utilities.h>
#import <SOGo/SOGoDomainDefaults.h>
#import <SOGo/SOGoSystemDefaults.h>
#import <SOGo/SOGoUser.h>
#import <SOGo/SOGoUserFolder.h>
#import <SOGo/SOGoUserSettings.h>
@@ -582,6 +583,20 @@
return _currentLabel;
}
- (BOOL) isMailSharingEnabled {
BOOL result;
SOGoSystemDefaults *sd;
result = YES;
sd = [SOGoSystemDefaults sharedSystemDefaults];
if (nil != [sd disableSharing]
&& NSNotFound != [[sd disableSharing] indexOfObject: kDisableSharingMail]) {
result = NO;
}
return result;
}
@end /* UIxMailMainFrame */
@interface UIxMailFolderTemplate : UIxComponent