Skip to content

Commit fdcc20d

Browse files
committed
minor fix
1 parent 6349a31 commit fdcc20d

File tree

1 file changed

+4
-2
lines changed
  • services/static-webserver/client/source/class/osparc/desktop/organizations

1 file changed

+4
-2
lines changed

services/static-webserver/client/source/class/osparc/desktop/organizations/MembersList.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,10 @@ qx.Class.define("osparc.desktop.organizations.MembersList", {
328328

329329
const readAccessRole = osparc.data.Roles.ORG["read"];
330330
const newAccessRights = readAccessRole.accessRights;
331+
const orgId = this.__currentOrg.getGroupId();
332+
const userId = "id" in listedMember ? listedMember["id"] : listedMember["key"];
331333
const groupsStore = osparc.store.Groups.getInstance();
332-
groupsStore.patchMember(this.__currentOrg.getGroupId(), listedMember["id"], newAccessRights)
334+
groupsStore.patchAccessRights(orgId, userId, newAccessRights)
333335
.then(() => {
334336
osparc.FlashMessenger.logAs(this.tr(`Successfully promoted to ${readAccessRole.label}`));
335337
this.__reloadOrgMembers();
@@ -348,7 +350,7 @@ qx.Class.define("osparc.desktop.organizations.MembersList", {
348350
const noReadAccessRole = osparc.data.Roles.ORG["noRead"];
349351
const newAccessRights = noReadAccessRole.accessRights;
350352
const orgId = this.__currentOrg.getGroupId();
351-
const userId = "id" in listedMember ? listedMember["id"] : listedMember["key"]
353+
const userId = "id" in listedMember ? listedMember["id"] : listedMember["key"];
352354
const groupsStore = osparc.store.Groups.getInstance();
353355
groupsStore.patchAccessRights(orgId, userId, newAccessRights)
354356
.then(() => {

0 commit comments

Comments
 (0)