From 43d125b216da9fc6f082fca42c3e295bf1d083b2 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Wed, 22 Aug 2018 17:19:18 +0200 Subject: [PATCH] Send hyphenatedSubdomains as non restricted property --- src/domains.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/domains.js b/src/domains.js index 87c86f4c1..692093d1e 100644 --- a/src/domains.js +++ b/src/domains.js @@ -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; } \ No newline at end of file