From b19b9b55424985a5720a7f504ab548526199f24b Mon Sep 17 00:00:00 2001 From: Odei Maiz <33152403+odeimaiz@users.noreply.github.com> Date: Tue, 9 Apr 2024 21:30:34 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Frontend:=20Data=20tab=20only=20?= =?UTF-8?q?visible=20in=20oSparc=20product=20(#5651)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../client/source/class/osparc/dashboard/Dashboard.js | 2 +- .../client/source/class/osparc/data/Permissions.js | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/services/static-webserver/client/source/class/osparc/dashboard/Dashboard.js b/services/static-webserver/client/source/class/osparc/dashboard/Dashboard.js index dbb68c3241f..4bd888292ed 100644 --- a/services/static-webserver/client/source/class/osparc/dashboard/Dashboard.js +++ b/services/static-webserver/client/source/class/osparc/dashboard/Dashboard.js @@ -120,7 +120,7 @@ qx.Class.define("osparc.dashboard.Dashboard", { buildLayout: this.__createServiceBrowser }); } - if (permissions.canDo("dashboard.data.read")) { + if (permissions.canDo("dashboard.data.read") && osparc.product.Utils.isProduct("osparc")) { tabs.push({ id: "dataTabBtn", label: this.tr("DATA"), diff --git a/services/static-webserver/client/source/class/osparc/data/Permissions.js b/services/static-webserver/client/source/class/osparc/data/Permissions.js index bd99584cf8a..90dfadf612f 100644 --- a/services/static-webserver/client/source/class/osparc/data/Permissions.js +++ b/services/static-webserver/client/source/class/osparc/data/Permissions.js @@ -158,10 +158,9 @@ qx.Class.define("osparc.data.Permissions", { "study.slides.stop" ]; } else if (osparc.product.Utils.isProduct("s4llite")) { - // "services" and "data" tabs only for testers + // "services" tabs only for testers fromUserToTester = [ - "dashboard.services.read", - "dashboard.data.read" + "dashboard.services.read" ]; } fromUserToTester.forEach(onlyTester => {