To reproduce:
create two users, John and Mary
set study visibility to Restricted
create a study named CardioStudy
create a workgroup named CardioGroup
add Mary to this workgroup
subscribe the workgroup to the CardioStudy
log in as Mary
create a new patient record
assign it to the CardioStudy
add John as a collaborator
Mary can see that the patient record belongs to the CardioStudy
log in as John
open the patient record
bug: John cannot see that the patient record belongs to the CardioStudy