Add ViewFamilyChildren permission for need-to-know child visibility#1162
Open
LarsKemmann with Copilot wants to merge 4 commits into
Open
Add ViewFamilyChildren permission for need-to-know child visibility#1162LarsKemmann with Copilot wants to merge 4 commits into
LarsKemmann with Copilot wants to merge 4 commits into
Conversation
…dren in a family Adds a new ViewFamilyChildren permission (value 160) that restricts viewing children in a family on a need-to-know basis. Users without this permission will not see children data in the family disclosure, and the UI will hide child cards and the Add Child button accordingly.
Copilot
AI
changed the title
[WIP] Add separate permissions for viewing children in a family
Add ViewFamilyChildren permission for need-to-know child visibility
Jun 4, 2026
…into copilot/implement-separate-permissions
LarsKemmann
marked this pull request as ready for review
July 21, 2026 14:48
Member
|
@PabloDinella Can you please review and plan to merge this? The only challenge is that we will require a permissions update for every organization when this is launched to add the View Family Children permission to every role that currently has View Person Contact Info. I think that's the most appropriate way to make this backwards compatible (the only other option I came up with is that we could add a permissions schema version to each config.json file and use that to make automatic edits to the files on read -- but that might be a bit too complicated to just build right now without proper design). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Children in a family should only be visible on a need-to-know basis. Families/community members serving other families should not see co-assigned families' children by default.
Changes
Permission.cs— NewViewFamilyChildren = 160enum value in the FamilyAndPersonInfo sectionAuthorizationEngine.cs—DiscloseFamily()returns empty children list when permission is absent, enforced at the disclosure layer:GeneratedClient.ts— Frontend enum kept in syncgroupedPermissions.tsx— Added toFamilyAndPersonInfocategory in role configuration UIFamilyScreen.tsx— Child cards and "Add Child" button gated behind the permission