// If we have already attempted to retrieve a value for this
// setting, then we can tell up front whether applying a value
// at the server will be an option. If not, store locally.
+ // Note that the existence of an org unit setting type and no
+ // user/ws setting type means applying a value locally is
+ // not allowed.
var summary = service.serverSettingSummaries[key];
if (summary &&
+ summary.has_org_setting() === 'f' &&
summary.has_user_setting() === 'f' &&
summary.has_workstation_setting() === 'f') {
return $q.when(service.keyCache[key] = val);
}
- if (summary.has_user_setting() === 'f' &&
+ // Note that the existence of an org unit setting type and no
+ // user/ws setting type means applying a value locally is
+ // not allowed.
+ if (summary.has_org_setting() === 'f' &&
+ summary.has_user_setting() === 'f' &&
summary.has_workstation_setting() === 'f') {
console.warn('No server setting type exists for '