File tree Expand file tree Collapse file tree 2 files changed +8
-15
lines changed
services/static-webserver/client/source/class/osparc Expand file tree Collapse file tree 2 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -139,17 +139,14 @@ qx.Class.define("osparc.data.model.Function", {
139139 statics : {
140140 canIWrite : function ( accessRights ) {
141141 const groupsStore = osparc . store . Groups . getInstance ( ) ;
142- const orgIDs = groupsStore . getOrganizationIds ( ) ;
143- orgIDs . push ( groupsStore . getMyGroupId ( ) ) ;
144- if ( orgIDs . length ) {
145- let canWrite = false ;
146- for ( let i = 0 ; i < gIds . length && ! canWrite ; i ++ ) {
147- const gid = gIds [ i ] ;
148- canWrite = ( gid in accessRights ) ? accessRights [ gid ] [ "write" ] : false ;
149- }
150- return canWrite ;
142+ const gIds = groupsStore . getOrganizationIds ( ) ;
143+ gIds . push ( groupsStore . getMyGroupId ( ) ) ;
144+ let canWrite = false ;
145+ for ( let i = 0 ; i < gIds . length && ! canWrite ; i ++ ) {
146+ const gid = gIds [ i ] ;
147+ canWrite = ( gid in accessRights ) ? accessRights [ gid ] [ "write" ] : false ;
151148 }
152- return false ;
149+ return canWrite ;
153150 } ,
154151 }
155152} ) ;
Original file line number Diff line number Diff line change @@ -106,11 +106,7 @@ qx.Class.define("osparc.info.FunctionLarge", {
106106 "ACCESS_RIGHTS" : {
107107 label : this . tr ( "Access" ) ,
108108 view : osparc . info . StudyUtils . createAccessRights ( this . getFunction ( ) ) ,
109- action : {
110- button : osparc . utils . Utils . getLinkButton ( canIWrite ) ,
111- callback : this . isOpenOptions ( ) ? this . __openAccessRights : "openAccessRights" ,
112- ctx : this
113- }
109+ action : null
114110 } ,
115111 "CREATED" : {
116112 label : this . tr ( "Created" ) ,
You can’t perform that action at this time.
0 commit comments