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

View File

@@ -32,6 +32,7 @@
#import <SOGo/SOGoUser.h>
#import <SOGo/SOGoUserDefaults.h>
#import <SOGo/SOGoUserSettings.h>
#import <SOGo/SOGoSystemDefaults.h>
#import <Appointments/SOGoAppointmentFolders.h>
@@ -361,6 +362,20 @@
return repeatFrequencies;
}
- (BOOL) isCalendarSharingEnabled {
BOOL result;
SOGoSystemDefaults *sd;
result = YES;
sd = [SOGoSystemDefaults sharedSystemDefaults];
if (nil != [sd disableSharing]
&& NSNotFound != [[sd disableSharing] indexOfObject: kDisableSharingCalendar]) {
result = NO;
}
return result;
}
@end
/* Component Viewer, parent class of Appointment Viewer and Task Viewer */