Misleading error message when assigning record with view only rights to a pedigree

Description

Steps to reproduce:

  • create 2 accounts: Peter and Mary

  • create few records for both accounts; add Peter as viewing collaborator to one of Mary's patients; create a pedigree with Mary's and Peter's patients but without this patient in it

  • login as Peter

  • try to add the patient to the pedigree ( either by linking an existing node to it or by adding a new unlinked member)

  • when Peter select the record form the lookup the error message "Can't link to this person: Insufficient permissions to view patient record" appears

  • we either need to change the wording to "Insufficient permissions to add patient record to this pedigree" or to remove such record from lookups

Environment

None

Status

Assignee

Andrew Misyura

Reporter

Sasha Andjic

Labels

None

External issue ID

None

External issue ID

None

Epic Link

Components

Fix versions

Affects versions

1.4-milestone-4

Priority

Medium