Skip to content

Commit

Permalink
feat: Restrict access to Clock Stops dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
iaindillingham committed Oct 23, 2023
1 parent aaa13e1 commit 90189c2
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
@@ -55,6 +55,11 @@ class RestrictedDataset:
cohort_extractor_function_names=[],
ehrql_table_names=["open_prompt"],
),
RestrictedDataset(
name="wl_clockstops",
cohort_extractor_function_names=[],
ehrql_table_names=["wl_clockstops", "wl_clockstops_raw"],
),
]

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

0 comments on commit 90189c2

Please sign in to comment.