From a0a06f1a4c09659a11a83ad7b33114e1070dfc2d Mon Sep 17 00:00:00 2001 From: Jean-Roch Maitre Date: Tue, 25 Oct 2016 10:29:43 -0700 Subject: [PATCH] UI-2438: Hide API URL if user is whitelabeling and is not a superduper admin --- src/apps/core/app.js | 5 +++-- src/apps/core/views/dialog-accountInfo.html | 10 ++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/apps/core/app.js b/src/apps/core/app.js index 5b2632f8f..756c7c78a 100644 --- a/src/apps/core/app.js +++ b/src/apps/core/app.js @@ -659,8 +659,9 @@ define(function(require){ account: acc, authToken: self.getAuthToken(), apiUrl: self.apiUrl, - version: monster.config.version - } + version: monster.config.version, + hideApiUrl: monster.util.isWhitelabeling() && !monster.util.isSuperDuper() + }, template = monster.template(self, 'dialog-accountInfo', dataTemplate); monster.ui.dialog(template, { diff --git a/src/apps/core/views/dialog-accountInfo.html b/src/apps/core/views/dialog-accountInfo.html index a468db1a8..8914bbc01 100644 --- a/src/apps/core/views/dialog-accountInfo.html +++ b/src/apps/core/views/dialog-accountInfo.html @@ -15,10 +15,12 @@ {{authToken}} - - {{ i18n.debugAccountDialog.apiUrl }} - {{apiUrl}} - + {{#unless hideApiUrl}} + + {{ i18n.debugAccountDialog.apiUrl }} + {{apiUrl}} + + {{/unless}} {{ i18n.debugAccountDialog.version }}