We're updating the issue view to help you get more done. 

Open patients with private families should not show the pedigree at all for non-collaborators

Description

Steps to reproduce the problem on the master branch after the merge of PT-3402:

  • log in as Alice

  • create a new patient

  • draw a pedigree

  • make the patient open

  • log in as Bob: Bob can edit the patient, but cannot see the pedigree or that the patient has a family

  • bug: Bob can start drawing a new pedigree, with a new family, but when trying to save an error is displayed: "Unable to save pedigree: Patient P123 already belongs to a different family FAM123, and therefore can not be added to this one"

Bob should not have the option to draw a pedigree in this case, but there should be a warning message, for example "This patient belongs to an undisclosed family".

Environment

None

Status

Assignee

Marta Girdea

Reporter

Sergiu Dumitriu

Labels

None

External issue ID

None

External issue ID

None

Fix versions

Priority

Major