Skip to content

Commit

Permalink
Merge pull request #4077 from cBioPortal/rfc59-unauth-studies-fix
Browse files Browse the repository at this point in the history
Deactivate checkbox for unauthorized studies (when skin.home_page.sho…
  • Loading branch information
alisman authored Dec 10, 2021
2 parents 27022ef + 42b5952 commit 4f02917
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/shared/components/query/StudyListLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export class FilteredCancerTreeView {
let checked = !!this.store.selectableSelectedStudyIds.find(
id => id == study.studyId
);
let disabled = this.store.isDeletedVirtualStudy(study.studyId);
let disabled = this.isCheckBoxDisabled(node);
return { checked, disabled };
}
}
Expand All @@ -299,6 +299,9 @@ export class FilteredCancerTreeView {
if (this.store.isDeletedVirtualStudy(study.studyId)) {
return true;
}
if (study.readPermission === false) {
return true;
}
return false;
}
}
Expand Down

0 comments on commit 4f02917

Please sign in to comment.