File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
services/static-webserver/client/source/class/osparc/study Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -411,16 +411,16 @@ qx.Class.define("osparc.study.Utils", {
411411 return "IN_DEBT" ;
412412 }
413413 if ( studyData [ "state" ] && studyData [ "state" ] [ "locked" ] && studyData [ "state" ] [ "locked" ] [ "value" ] ) {
414- if ( osparc . utils . DisabledPlugins . isSimultaneousAccessEnabled ( ) ) {
415- return false ;
416- }
417414 return "IN_USE" ;
418415 }
419416 return false ;
420417 } ,
421418
422419 canBeOpened : function ( studyData ) {
423420 const blocked = this . __getBlockedState ( studyData ) ;
421+ if ( osparc . utils . DisabledPlugins . isSimultaneousAccessEnabled ( ) ) {
422+ return [ "IN_USE" , false ] . includes ( blocked ) ;
423+ }
424424 return [ false ] . includes ( blocked ) ;
425425 } ,
426426
@@ -446,6 +446,9 @@ qx.Class.define("osparc.study.Utils", {
446446
447447 canShowPreview : function ( studyData ) {
448448 const blocked = this . __getBlockedState ( studyData ) ;
449+ if ( osparc . utils . DisabledPlugins . isSimultaneousAccessEnabled ( ) ) {
450+ return [ "IN_USE" , false ] . includes ( blocked ) ;
451+ }
449452 return [ false ] . includes ( blocked ) ;
450453 } ,
451454
You can’t perform that action at this time.
0 commit comments