Skip to content

Commit 120c5cd

Browse files
committed
minor
1 parent 85276e3 commit 120c5cd

File tree

1 file changed

+9
-9
lines changed
  • services/static-webserver/client/source/class/osparc/dashboard

1 file changed

+9
-9
lines changed

services/static-webserver/client/source/class/osparc/dashboard/CardBase.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,6 @@ qx.Class.define("osparc.dashboard.CardBase", {
125125
switch (sharedWith) {
126126
case "show-all":
127127
return false;
128-
case "shared-with-everyone": {
129-
const everyoneGroupIds = [
130-
groupsStore.getEveryoneProductGroup().getGroupId(),
131-
groupsStore.getEveryoneGroup().getGroupId(),
132-
];
133-
const found = Object.keys(checks).some(gId => everyoneGroupIds.includes(parseInt(gId)));
134-
// show those that are shared with "1" or product everyone's groupId
135-
return !found;
136-
}
137128
case "my-resources": {
138129
if (myGroupId in checks) {
139130
const myAccessRights = checks[myGroupId];
@@ -153,6 +144,15 @@ qx.Class.define("osparc.dashboard.CardBase", {
153144
// if we get here, it means that it was shared-with-me via an organization
154145
return false;
155146
}
147+
case "shared-with-everyone": {
148+
const everyoneGroupIds = [
149+
groupsStore.getEveryoneProductGroup().getGroupId(),
150+
groupsStore.getEveryoneGroup().getGroupId(),
151+
];
152+
const found = Object.keys(checks).some(gId => everyoneGroupIds.includes(parseInt(gId)));
153+
// show those that are shared with "1" or product everyone's groupId
154+
return !found;
155+
}
156156
default:
157157
return true;
158158
}

0 commit comments

Comments
 (0)