Skip to content

Community leaders able to search and read records created by other users from the same office. #12373

@tiri39

Description

@tiri39

Bug description:
Community leaders able to search and read records created by other users from the same office.

community leaders should have these scopes -

  • search[event=birth|death declared_by:me]
  • record.read[event=birth|death declared_by:me]

Steps to reproduce:

  1. Create an user under Klow village office, that can create records.
  2. Create and notify a record.
  3. Login as g.phiri (community leader at Klow village office)
  4. Search for that record.

Actual result:
Community leaders able to search and read records created by other users from the same office.

Expected result:
According to the scopes, community leaders should be able to search and read only those records that are declared by themselves.

Recording:

Farajaland.CRS.-.Google.Chrome.2026-04-17.18-23-32.mp4

Tested on:
https://register.v20-test.e2e-k8s.opencrvs.dev/

Version:
v2.0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

Ready for release

Relationships

None yet

Development

No branches or pull requests

Issue actions