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.pull/281/head
parent
9c299cf0de
commit
14b60cd756
|
@ -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:
|
||||
|
|
|
@ -182,7 +182,7 @@
|
|||
if (!_.find(this.attendees, function(o) {
|
||||
return o.email == attendee.email;
|
||||
})) {
|
||||
if (card.$isList()) {
|
||||
if (card.$isList() && Attendees.$Preferences.defaults.SOGoLDAPGroupExpansionEnabled) {
|
||||
// LDAP list -- preload members
|
||||
card.$members().then(function(members) {
|
||||
attendee.members = members;
|
||||
|
|
Loading…
Reference in New Issue