We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 932b218 commit 338ce59Copy full SHA for 338ce59
services/static-webserver/client/source/class/osparc/info/CommentAdd.js
@@ -148,9 +148,9 @@ qx.Class.define("osparc.info.CommentAdd", {
148
!(userGid in this.__studyData["accessRights"]) &&
149
osparc.data.model.Study.canIWrite(this.__studyData["accessRights"])
150
) {
151
- const newCollaborators = [{
152
- userGid: osparc.data.Roles.STUDY["write"].accessRights
153
- }];
+ const newCollaborators = {
+ [userGid]: osparc.data.Roles.STUDY["write"].accessRights
+ };
154
osparc.store.Study.addCollaborators(this.__studyData, newCollaborators)
155
.then(() => {
156
this.__addNotify(userGid);
0 commit comments