File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
services/static-webserver/client/source/class/osparc/desktop/organizations Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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 ( ( ) => {
You can’t perform that action at this time.
0 commit comments