Skip to content

Commit

Permalink
feat: Restrict access to Open Pathways dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
iaindillingham committed Oct 23, 2023
1 parent 90189c2 commit c6e98a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions opensafely/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ class RestrictedDataset:
cohort_extractor_function_names=[],
ehrql_table_names=["wl_clockstops", "wl_clockstops_raw"],
),
RestrictedDataset(
name="wl_openpathways",
cohort_extractor_function_names=[],
ehrql_table_names=["wl_openpathways", "wl_openpathways_raw"],
),
]

PERMISSIONS_URL = "https://raw.githubusercontent.com/opensafely-core/opensafely-cli/main/repository_permissions.yaml"
Expand Down
4 changes: 3 additions & 1 deletion tests/fixtures/permissions/repository_permissions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ opensafely/dummy_open_prompt:
allow: ['open_prompt']
opensafely/dummy_wl_clockstops:
allow: ['wl_clockstops']
opensafely/dummy_wl_openpathways:
allow: ['wl_openpathways']
opensafely/dummy_all:
allow: ['icnarc', 'ons', 'isaric', 'ukrr', 'open_prompt', 'wl_clockstops']
allow: ['icnarc', 'ons', 'isaric', 'ukrr', 'open_prompt', 'wl_clockstops', 'wl_openpathways']

0 comments on commit c6e98a6

Please sign in to comment.