Skip to content

Commit c384893

Browse files
committed
the accessRights come from the organization, update them
1 parent 1efd09c commit c384893

File tree

1 file changed

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

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ qx.Class.define("osparc.store.Groups", {
9797
const groupMe = this.__addToGroupsCache(resp["me"], "me");
9898
const orgs = {};
9999
resp["organizations"].forEach(organization => {
100+
if (supportGroup && supportGroup.getGroupId() === organization["gid"]) {
101+
// support group was already added to the cache, but it was missing the accessRights
102+
// the accessRights come from the organization, update them
103+
supportGroup.setAccessRights(organization["accessRights"]);
104+
}
100105
const org = this.__addToGroupsCache(organization, "organization");
101106
orgs[org.getGroupId()] = org;
102107
});

0 commit comments

Comments
 (0)