mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-31 06:45:42 +00:00
Prevent Invitations and whitelist GUI
This commit is contained in:
1 parent
1cc93c700a
commit
8ded5a8aaf
8 files changed
+1264
-855
No files matched your search
@@ -33,6 +33,7 @@
|
||||
{
|
||||
id item;
|
||||
SOGoUser *user;
|
||||
SOGoUserSettings *us;
|
||||
NGSieveClient *client;
|
||||
|
||||
// Addressbook
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
#import <SOGo/NSString+Utilities.h>
|
||||
#import <SOGo/SOGoUser.h>
|
||||
#import <SOGo/SOGoUserDefaults.h>
|
||||
#import <SOGo/SOGoUserSettings.h>
|
||||
#import <SOGo/SOGoDomainDefaults.h>
|
||||
#import <SOGo/SOGoSieveManager.h>
|
||||
#import <SOGo/SOGoSystemDefaults.h>
|
||||
@@ -638,6 +639,23 @@ static NSArray *reminderValues = nil;
|
||||
return [userDefaults busyOffHours];
|
||||
}
|
||||
|
||||
- (void) setPreventInvitations: (BOOL) preventInvitations
|
||||
{
|
||||
SOGoUserSettings *us;
|
||||
|
||||
us = [user userSettings];
|
||||
[us setBool: preventInvitations forKey: @"PreventInvitations"];
|
||||
[us synchronize];
|
||||
}
|
||||
|
||||
- (BOOL) preventInvitations
|
||||
{
|
||||
SOGoUserSettings *us;
|
||||
us = [user userSettings];
|
||||
|
||||
return [[us objectForKey: @"PreventInvitations"] boolValue];
|
||||
}
|
||||
|
||||
- (NSArray *) firstWeekList
|
||||
{
|
||||
return [NSArray arrayWithObjects:
|
||||
|
||||
Reference in new issue
Block a user