fix(calendar(js)): avoid call to /members when expansion is disabled

Expose SOGoLDAPGroupExpansionEnabled in /jsonDefaults to avoid a call to
/members when the parameter is disabled.
This commit is contained in:
Francis Lachapelle
2019-11-18 11:06:15 -05:00
parent 9c299cf0de
commit 14b60cd756
2 changed files with 5 additions and 1 deletions

View File

@@ -365,6 +365,10 @@ static SoProduct *preferencesProduct = nil;
[values setObject: [NSNumber numberWithBool: [domainDefaults appointmentSendEMailNotifications]]
forKey: @"SOGoAppointmentSendEMailNotifications"];
// Expose the SOGoLDAPGroupExpansionEnabled configuration parameter from the domain defaults
[values setObject: [NSNumber numberWithBool: [domainDefaults ldapGroupExpansionEnabled]]
forKey: @"SOGoLDAPGroupExpansionEnabled"];
// Add locale code (used by CK Editor)
[values setObject: [locale objectForKey: @"NSLocaleCode"] forKey: @"LocaleCode"];
[values setObject: [NSDictionary dictionaryWithObjectsAndKeys: