Skip to content

Commit

Permalink
Merge pull request #4653 from BasLee/fix-unauthorized-study-tags
Browse files Browse the repository at this point in the history
Fix index page with unauthorized studies: only fetch study tags from authorized studies
  • Loading branch information
dippindots authored Jul 17, 2023
2 parents a6b2e61 + 2c91491 commit ff93ce3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/shared/components/query/QueryStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,9 @@ export class QueryStore {
readonly cancerStudyTags = remoteData({
await: () => [this.cancerStudies],
invoke: async () => {
const studyIds = this.cancerStudies.result.map(s => s.studyId);
const studyIds = this.cancerStudies.result
.filter(s => s.readPermission)
.map(s => s.studyId);
return client.getTagsForMultipleStudiesUsingPOST({ studyIds });
},
default: [],
Expand Down

0 comments on commit ff93ce3

Please sign in to comment.