Skip to content

Commit 338ce59

Browse files
committed
share study
1 parent 932b218 commit 338ce59

File tree

1 file changed

+3
-3
lines changed
  • services/static-webserver/client/source/class/osparc/info

1 file changed

+3
-3
lines changed

services/static-webserver/client/source/class/osparc/info/CommentAdd.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ qx.Class.define("osparc.info.CommentAdd", {
148148
!(userGid in this.__studyData["accessRights"]) &&
149149
osparc.data.model.Study.canIWrite(this.__studyData["accessRights"])
150150
) {
151-
const newCollaborators = [{
152-
userGid: osparc.data.Roles.STUDY["write"].accessRights
153-
}];
151+
const newCollaborators = {
152+
[userGid]: osparc.data.Roles.STUDY["write"].accessRights
153+
};
154154
osparc.store.Study.addCollaborators(this.__studyData, newCollaborators)
155155
.then(() => {
156156
this.__addNotify(userGid);

0 commit comments

Comments
 (0)