Skip to content

Commit

Permalink
🐛 Publishing as Tutorials - PO TESTER and ADMIN (#5143)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsaq007 authored Dec 6, 2023
1 parent 2b4bebc commit fd0c017
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ qx.Class.define("osparc.data.Permissions", {
],
"tester": [
"studies.template.create.all",
"studies.template.create.productAll",
"services.all.read",
"services.all.reupdate",
"services.filePicker.read.all",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ qx.Class.define("osparc.share.PublishTemplate", {
}
if (rb.contextId === this.self().SharingOpts["productAll"].contextId) {
// Only users the product group can share for everyone
if (groupProductEveryone) {
if (osparc.data.Permissions.getInstance().canDo("studies.template.create.productAll")) {
rb.gid = groupProductEveryone["gid"];
rb.show();
}
Expand Down

0 comments on commit fd0c017

Please sign in to comment.