Skip to content

Commit f7501bd

Browse files
committed
extra checks
1 parent aa912e9 commit f7501bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,12 @@ qx.Class.define("osparc.dashboard.ResourceBrowserBase", {
130130
if (
131131
isStudyCreation ||
132132
wallet === null ||
133-
currentUserGroupIds.length === 0
133+
(osparc.desktop.credits.Utils.getWallet(wallet["walletId"]) === null && currentUserGroupIds.length === 0)
134134
) {
135135
// pop up StudyOptions if:
136136
// - the study was just created
137137
// - it has no wallet assigned
138-
// - the project is not being used
138+
// - I have no access to it and the project is not being used
139139
const resourceSelector = new osparc.study.StudyOptions(studyId);
140140
if (isStudyCreation) {
141141
resourceSelector.getChildControl("open-button").setLabel(qx.locale.Manager.tr("New"));

0 commit comments

Comments
 (0)