From 3dddf4526d6ce25d571b20062eac954e10ea4684 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Mon, 12 Dec 2022 16:39:44 +0530 Subject: [PATCH 1/2] change(ui) - tenant key restrict to admin --- .../app/components/Client/ProfileSettings/ProfileSettings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/components/Client/ProfileSettings/ProfileSettings.js b/frontend/app/components/Client/ProfileSettings/ProfileSettings.js index e8b508072..2f1129996 100644 --- a/frontend/app/components/Client/ProfileSettings/ProfileSettings.js +++ b/frontend/app/components/Client/ProfileSettings/ProfileSettings.js @@ -59,7 +59,7 @@ export default class ProfileSettings extends React.PureComponent { - {isEnterprise && ( + {isEnterprise && (account.admin || account.superAdmin) && ( <>
From b42cb2df3b55d18e0f9c9be6197586e080db1ea0 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Mon, 12 Dec 2022 16:47:17 +0530 Subject: [PATCH 2/2] change(ui) - removed logs --- frontend/app/logger/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/logger/index.js b/frontend/app/logger/index.js index 8b6d7168f..68611c540 100644 --- a/frontend/app/logger/index.js +++ b/frontend/app/logger/index.js @@ -1,7 +1,7 @@ import { options } from 'App/dev/console'; function log(...args) { - if (options.verbose) { + if (!window.env.PRODUCTION || options.verbose) { if (Object.keys(groupTm).length > 0) { console.groupEnd(); }