Send hyphenatedSubdomains as non restricted property

This commit is contained in:
Johannes Zellner
2018-08-22 17:19:18 +02:00
parent 9467a2922a
commit 43d125b216
+4
View File
@@ -382,5 +382,9 @@ function removePrivateFields(domain) {
// removes all fields that are not accessible by a normal user
function removeRestrictedFields(domain) {
var result = _.pick(domain, 'domain', 'zoneName', 'provider');
// always ensure config object
result.config = { hyphenatedSubdomains: !!domain.config.hyphenatedSubdomains };
return result;
}