Skip to content

Commit 46af020

Browse files
committed
check isLoggedIn
1 parent 9451769 commit 46af020

File tree

1 file changed

+5
-1
lines changed
  • services/static-webserver/client/source/class/osparc/dashboard

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
170170
},
171171

172172
__reloadFolders: function() {
173+
if (!osparc.auth.Manager.getInstance().isLoggedIn()) {
174+
return;
175+
}
176+
173177
if (osparc.utils.DisabledPlugins.isFoldersEnabled()) {
174178
const folderId = this.getCurrentFolderId();
175179
const workspaceId = this.getCurrentWorkspaceId();
@@ -186,7 +190,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
186190
},
187191

188192
__reloadStudies: function() {
189-
if (this._loadingResourcesBtn.isFetching()) {
193+
if (this._loadingResourcesBtn.isFetching() || !osparc.auth.Manager.getInstance().isLoggedIn()) {
190194
return;
191195
}
192196
const workspaceId = this.getCurrentWorkspaceId();

0 commit comments

Comments
 (0)