VEuPathDB / web-study-data-access

Utilities and hooks for controlling end user access to study data
Apache License 2.0
0 stars 1 forks source link

/permissions-based data restriction checks + configurable study access url #3

Closed jtlong3rd closed 2 years ago

jtlong3rd commented 2 years ago

Depends on

This PR:

  1. Accommodates changes to the /permissions response. (At a high level, the /permissions response now indicates which categories of UI actions the user is permitted to perform, so lots of client-side data restriction checks are updated or excised.)
  2. Uses the /permissions endpoint to enforce data restrictions for registered and guest users
  3. Exposes a WdkDependencies wrapper which can be used to provide a configurable StudyAccessApi as a WdkDependenciesContext and a WDK epic/thunk dependency
  4. Copies the withPermissions HOC from EbrcWebsiteCommon

Future work:

Fully excise the use of the approvedStudies user property, which is still being used to handle the case of MicrobiomeDB.