When the family template already specifies a default owner, new families end up having two owners

Description

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

Environment

None

Status

Assignee

Andrew Misyura

Reporter

Sergiu Dumitriu

Labels

None

External issue ID

None

External issue ID

None

Epic Link

Components

Fix versions

Affects versions

Priority

Medium
Configure