Skip to content

Commit dd75ef6

Browse files
committed
last
1 parent f38a0f0 commit dd75ef6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

services/static-webserver/client/source/class/osparc/study/SaveAsTemplate.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,14 @@ qx.Class.define("osparc.study.SaveAsTemplate", {
6767
},
6868

6969
__publishTemplate: function() {
70+
const readAccessRole = osparc.data.Roles.STUDY["read"];
7071
// AccessRights will be POSTed after the template is created.
7172
// No need to add myself, backend will automatically do it
72-
const accessRights = {}
73+
const accessRights = {};
7374
this.__studyDataClone["accessRights"] = {};
7475
const selectedGroupIDs = this.__shareWith.getSelectedGroups();
7576
selectedGroupIDs.forEach(gid => {
76-
accessRights[gid] = osparc.share.CollaboratorsStudy.getViewerAccessRight();
77+
accessRights[gid] = readAccessRole.accessRights;
7778
});
7879

7980
this.fireDataEvent("publishTemplate", {

0 commit comments

Comments
 (0)