Fix SOGoLoginModule when set to "Last used"

This commit is contained in:
Francis Lachapelle
2016-06-16 15:37:41 -04:00
parent af8f939559
commit 734d680708
2 changed files with 6 additions and 1 deletions

View File

@@ -283,7 +283,7 @@ static SoProduct *preferencesProduct = nil;
if (![[defaults source] objectForKey: @"SOGoMailDisplayRemoteInlineImages"])
[[defaults source] setObject: [defaults mailDisplayRemoteInlineImages] forKey: @"SOGoMailDisplayRemoteInlineImages"];
// Populate default mail lablels, based on the user's preferred language
// Populate default mail labels, based on the user's preferred language
if (![[defaults source] objectForKey: @"SOGoMailLabelsColors"])
{
SOGoMailLabel *label;
@@ -356,6 +356,10 @@ static SoProduct *preferencesProduct = nil;
[values setObject: vacation forKey: @"Vacation"];
}
// Don't expose SOGoRememberLastModule;
// User can edit SOGoLoginModule but SOGoRememberLastModule is managed internally.
[values removeObjectForKey: @"SOGoRememberLastModule"];
return [self responseWithStatus: 200 andJSONRepresentation: values];
}