From 59ab3db8bf567b330205bf5430922563cb714bea Mon Sep 17 00:00:00 2001 From: Stuart Taylor Date: Sun, 1 Jul 2018 10:29:38 +0100 Subject: [PATCH] fix(profileUI): Give a default profileUI to new accounts --- common/models/user.json | 57 ++++++++--------------------------------- 1 file changed, 11 insertions(+), 46 deletions(-) diff --git a/common/models/user.json b/common/models/user.json index 738bf86563..67f554fcc9 100644 --- a/common/models/user.json +++ b/common/models/user.json @@ -218,52 +218,17 @@ "default": "default" }, "profileUI": { - "type": { - "isLocked": { - "type": "boolean", - "description": "Campers profile shows only their username and avatar to the public", - "default": true - }, - "showAbout": { - "type": "boolean", - "description": "For granular control of what is shown to the public", - "default": false - }, - "showCerts": { - "type": "boolean", - "description": "For granular control of what is shown to the public", - "default": false - }, - "showHeatMap": { - "type": "boolean", - "description": "For granular control of what is shown to the public", - "default": false - }, - "showLocation": { - "type": "boolean", - "description": "For granular control of what is shown to the public", - "default": false - }, - "showName": { - "type": "boolean", - "description": "For granular control of what is shown to the public", - "default": false - }, - "showPoints": { - "type": "boolean", - "description": "For granular control of what is shown to the public", - "default": false - }, - "showPortfolio": { - "type": "boolean", - "description": "For granular control of what is shown to the public", - "default": false - }, - "showTimeLine": { - "type": "boolean", - "description": "For granular control of what is shown to the public", - "default": false - } + "type": "object", + "default": { + "isLocked": true, + "showAbout": false, + "showCerts": false, + "showHeatMap": false, + "showLocation": false, + "showName": false, + "showPoints": false, + "showPortfolio": false, + "showTimeLine": false } }, "badges": {