Skip to content

Commit 1bc255c

Browse files
committed
showPublicProjects II
1 parent 4eafde3 commit 1bc255c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

services/static-webserver/client/source/class/osparc/dashboard/ResourceDetails.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,10 @@ qx.Class.define("osparc.dashboard.ResourceDetails", {
761761
},
762762

763763
__getPublishPage: function() {
764-
if (!osparc.utils.Resources.isStudy(this.__resourceData)) {
764+
if (
765+
!osparc.utils.Resources.isStudy(this.__resourceData) ||
766+
!osparc.product.Utils.showPublicProjects()
767+
) {
765768
return null;
766769
}
767770

@@ -799,7 +802,10 @@ qx.Class.define("osparc.dashboard.ResourceDetails", {
799802
},
800803

801804
__getCreateTemplatePage: function() {
802-
if (!osparc.utils.Resources.isStudy(this.__resourceData)) {
805+
if (
806+
!osparc.utils.Resources.isStudy(this.__resourceData) ||
807+
osparc.product.Utils.showTemplates()
808+
) {
803809
return null;
804810
}
805811

0 commit comments

Comments
 (0)