Skip to content

Commit

Permalink
checks correct
Browse files Browse the repository at this point in the history
  • Loading branch information
odeimaiz committed Dec 15, 2024
1 parent 623a396 commit 3031392
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ qx.Class.define("osparc.dashboard.DragDropHelpers", {
// - Write on dest Workspace
if (workspaceDestId === -1) { // (0)
compatible = false;
} else if (studyDataOrigin["workspaceId"] === null && workspaceDest === null) { // (1)
} else if (studyDataOrigin["workspaceId"] === null && workspaceDestId === null) { // (1)
compatible = true;
} else if (studyDataOrigin["workspaceId"] === null && workspaceDest) { // (2)
compatible = osparc.data.model.Study.canIDelete(studyDataOrigin["accessRights"]) && workspaceDest.getMyAccessRights()["write"];
} else if (workspaceOrigin && workspaceDest === null) { // (3)
} else if (workspaceOrigin && workspaceDestId === null) { // (3)
compatible = workspaceOrigin.getMyAccessRights()["delete"];
} else if (workspaceOrigin && workspaceDest) { // (4)
compatible = workspaceOrigin.getMyAccessRights()["delete"] && workspaceDest.getMyAccessRights()["write"];
Expand Down

0 comments on commit 3031392

Please sign in to comment.