mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-14 05:23:14 +00:00
[CST-5669] Minor changes
This commit is contained in:
@@ -576,10 +576,10 @@ public class EPersonServiceImpl extends DSpaceObjectServiceImpl<EPerson> impleme
|
||||
|
||||
@Override
|
||||
public EPerson findByProfileItem(Context context, Item profile) throws SQLException {
|
||||
List<MetadataValue> crisOwners = itemService.getMetadata(profile, "dspace", "object", "owner", ANY);
|
||||
if (CollectionUtils.isEmpty(crisOwners)) {
|
||||
List<MetadataValue> owners = itemService.getMetadata(profile, "dspace", "object", "owner", ANY);
|
||||
if (CollectionUtils.isEmpty(owners)) {
|
||||
return null;
|
||||
}
|
||||
return find(context, UUIDUtils.fromString(crisOwners.get(0).getAuthority()));
|
||||
return find(context, UUIDUtils.fromString(owners.get(0).getAuthority()));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user