Skip to content

Commit 4534f42

Browse files
committed
stop infinite fetching
1 parent dbc7f68 commit 4534f42

File tree

1 file changed

+11
-0
lines changed
  • services/static-webserver/client/source/class/osparc/dashboard

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,17 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
773773
const key = osparc.utils.Utils.snakeToCamel(snakeKey);
774774
urlParams[key] = value === "null" ? null : value;
775775
}
776+
777+
// keep this until the backend implements it
778+
switch (this.getCurrentContext()) {
779+
case "templates":
780+
urlParams.accessRights = "non-public";
781+
break;
782+
case "public":
783+
requestParams.accessRights = "public";
784+
break;
785+
}
786+
776787
const contextChanged = this.__didContextChange(urlParams);
777788
if (
778789
!contextChanged &&

0 commit comments

Comments
 (0)