Skip to content

Commit 52220e4

Browse files
committed
canBeOpened
1 parent 11bc6b2 commit 52220e4

File tree

1 file changed

+6
-3
lines changed
  • services/static-webserver/client/source/class/osparc/study

1 file changed

+6
-3
lines changed

services/static-webserver/client/source/class/osparc/study/Utils.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)