- create a new workgroup named A (xwiki:Groups.A)
- visit http://localhost:8080/objectadd/PhenoTips/FamilyTemplate?classname=PhenoTips.OwnerClass&PhenoTips.OwnerClass_owner=xwiki:Groups.A to set a default owner for the family (confirm the form submission)
- create a new family -> owner is apparently the A workgroup
- go to the families directory -> the record appears to have two owners, A and Admin
Expected behavior: only A is the owner, in this case Admin should never be set as the owner. This is how it works for patients.
A quick fix is to modify PhenoTipsFamilyRepository#create with logic similar to https://github.com/phenotips/phenotips/blob/phenotips-1.4-rc-4/components/entity-access-rules/api/src/main/java/org/phenotips/data/permissions/internal/OwnerUpdateEventListener.java#L71-L79