Skip to content

Commit

Permalink
Merge pull request #269 from phenotips/PN-470
Browse files Browse the repository at this point in the history
PN-470: Matches between patients belonging to the same owner are no longer shown on the patient page
  • Loading branch information
sdumitriu authored Apr 27, 2019
2 parents f9f8d8c + a865a22 commit 87f1f7e
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,6 @@ private boolean filterPatient(Patient matchPatient, Family family, EntityReferen
}

EntityAccess access = this.permissionsManager.getEntityAccess(matchPatient);
// filter out patients of the same owner
Owner matchOwner = access.getOwner();
if (refOwner != null && matchOwner != null && refOwner.equals(matchOwner.getUser())) {
return true;
}
// filter out patients with visibility level less than defined visibility level threshold
Visibility patientVisibility = access.getVisibility();
if (this.visibilityLevelThreshold.compareTo(patientVisibility) > 0) {
Expand Down

0 comments on commit 87f1f7e

Please sign in to comment.