File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
services/static-webserver/client/source/class/osparc Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments