Skip to content

Commit bb84c08

Browse files
committed
data tab only available in osparc and testers
1 parent 9efd723 commit bb84c08

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

services/static-webserver/client/source/class/osparc/dashboard/Dashboard.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ qx.Class.define("osparc.dashboard.Dashboard", {
147147
buttonId: "dataTabBtn",
148148
label: this.tr("DATA"),
149149
icon: "@FontAwesome5Solid/folder/"+tabIconSize,
150-
initVisibility: osparc.product.Utils.isProduct("osparc") ? "visible" : "excluded",
151150
buildLayout: this.__createDataBrowser
152151
});
153152
}

services/static-webserver/client/source/class/osparc/data/Permissions.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ qx.Class.define("osparc.data.Permissions", {
145145
],
146146
"admin": []
147147
};
148+
148149
let fromUserToTester = [];
149150
if (osparc.product.Utils.isProduct("tis") || osparc.product.Utils.isProduct("tiplite")) {
150151
// "templates" and "services" tabs only for testers
@@ -162,6 +163,13 @@ qx.Class.define("osparc.data.Permissions", {
162163
"dashboard.services.read"
163164
];
164165
}
166+
if (osparc.product.Utils.getProductName() !== "osparc") {
167+
// data tab only available in osparc and testers
168+
fromUserToTester = [
169+
"dashboard.data.read"
170+
];
171+
}
172+
165173
fromUserToTester.forEach(onlyTester => {
166174
const idx = initPermissions.user.indexOf(onlyTester);
167175
if (idx > -1) {

0 commit comments

Comments
 (0)