Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scopes: Adds scopes to control if a user can only declare events that occurred in their jurisdiction #7420

Open
jpye-finch opened this issue Jul 30, 2024 · 1 comment
Labels
Milestone

Comments

@jpye-finch
Copy link
Collaborator

Description

Adds scopes to control if a user can only create declarations for events that occurred in their jurisdiction

  • record.declare-birth:my-jurisdiction
  • record.declare-death:my-jurisdiction
  • record.declare-marriage:my-jurisdiction

When a user has this scope then it:

  • filters the place of birth/death/marriage administrative structure
  • filters the health facility list

Scopes:
https://www.notion.so/opencrvs/User-Scopes-e827de98050c409fa1cfa5a2e4ea7050?pvs=4

ACs

GIVEN I have record.declare-birth:my-jurisdiction
THEN filter the Place of birth administrative structure to my jurisdiction
THEN filter the Place of birth health facility list to my jurisdiction

GIVEN I have record.declare-death:my-jurisdiction
THEN filter the Place of death administrative structure to my jurisdiction
THEN filter the Place of death health facility list to my jurisdiction

GIVEN I have record.declare-marriage:my-jurisdiction
THEN filter the Place of marriage administrative structure to my jurisdiction
THEN filter the Place of marriage health facility list to my jurisdiction

Dev tasks

@jpye-finch jpye-finch moved this from Backlog to Ready to build in OpenCRVS Core Jul 30, 2024
@jpye-finch jpye-finch added this to the v1.7.0 milestone Jul 30, 2024
@jpye-finch jpye-finch changed the title Scopes: User can only declare events that occurred in their jurisdiction Scopes: Adds scopes to control if a user can only declare events that occurred in their jurisdiction Jul 31, 2024
@jpye-finch
Copy link
Collaborator Author

Moving to #7751

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Design
Development

No branches or pull requests

1 participant