Skip to content

Commit 42e32a1

Browse files
committed
getAllMyGroupIds
1 parent 717cc90 commit 42e32a1

File tree

1 file changed

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

1 file changed

+9
-0
lines changed

services/static-webserver/client/source/class/osparc/store/Groups.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,15 @@ qx.Class.define("osparc.store.Groups", {
158158
return Object.keys(this.getOrganizations());
159159
},
160160

161+
getAllMyGroupIds: function() {
162+
return [
163+
this.getMyGroupId(),
164+
...this.getOrganizationIds().map(gId => parseInt(gId)),
165+
this.getEveryoneProductGroup().getGroupId(),
166+
this.getEveryoneGroup().getGroupId(),
167+
]
168+
},
169+
161170
getGroup: function(groupId) {
162171
const groups = [];
163172

0 commit comments

Comments
 (0)