@sjcrh/proteinpaint-server 2.99.1 → 2.100.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-server",
3
- "version": "2.99.1",
3
+ "version": "2.100.0",
4
4
  "type": "module",
5
5
  "description": "a genomics visualization tool for exploring a cohort's genotype and phenotype data",
6
6
  "main": "src/app.js",
@@ -61,7 +61,7 @@
61
61
  "@sjcrh/augen": "2.87.0",
62
62
  "@sjcrh/proteinpaint-rust": "2.99.0",
63
63
  "@sjcrh/proteinpaint-shared": "2.99.1",
64
- "@sjcrh/proteinpaint-types": "2.99.1",
64
+ "@sjcrh/proteinpaint-types": "2.100.0",
65
65
  "@types/express": "^5.0.0",
66
66
  "@types/express-session": "^1.18.1",
67
67
  "better-sqlite3": "^9.4.1",
@@ -267,6 +267,11 @@ function getSelectCohort(ds, req) {
267
267
  if (ds.cohort.termdb.selectCohort.descriptionByUser) {
268
268
  copy.description = ds.cohort.termdb.selectCohort.descriptionByUser(authApi.getNonsensitiveInfo(req));
269
269
  delete copy.descriptionByUser;
270
+ } else if (ds.cohort.termdb.selectCohort.descriptionByCohortBasedOnUserRole) {
271
+ copy.descriptionByCohort = ds.cohort.termdb.selectCohort.descriptionByCohortBasedOnUserRole(
272
+ authApi.getNonsensitiveInfo(req)
273
+ );
274
+ delete copy.descriptionByCohortBasedOnUserRole;
270
275
  }
271
276
  return copy;
272
277
  }