Skip to content

Commit

Permalink
🐛 [Frontend bugfix] patch Services access rights (#5949)
Browse files Browse the repository at this point in the history
  • Loading branch information
odeimaiz authored Jun 18, 2024
1 parent 094dc13 commit 192e731
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ qx.Class.define("osparc.service.ServiceListItem", {
allowGrowX: true
});

this.setResourceType("service");
if (serviceModel) {
this.setServiceModel(serviceModel);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ qx.Class.define("osparc.share.CollaboratorsService", {
gids.forEach(gid => {
newAccessRights[gid] = this.self().getCollaboratorAccessRight();
});
osparc.info.ServiceUtils.patchServiceData(this._serializedDataCopy, "accessRights", this._serializedDataCopy)
osparc.info.ServiceUtils.patchServiceData(this._serializedDataCopy, "accessRights", newAccessRights)
.then(() => {
this.fireDataEvent("updateAccessRights", this._serializedDataCopy);
let text = this.tr("Editor(s) successfully added.");
Expand All @@ -111,7 +111,7 @@ qx.Class.define("osparc.share.CollaboratorsService", {
})
.catch(err => {
console.error(err);
osparc.FlashMessenger.getInstance().logAs(this.tr("Something went adding editor(s)"), "ERROR");
osparc.FlashMessenger.getInstance().logAs(this.tr("Something went wrong adding editor(s)"), "ERROR");
})
.finally(() => cb());
},
Expand Down

0 comments on commit 192e731

Please sign in to comment.