Skip to content

Commit

Permalink
fix: add back attribute values at /me endpoint (#19539)
Browse files Browse the repository at this point in the history
Signed-off-by: Morten Svanaes <[email protected]>
  • Loading branch information
netroms authored Jan 20, 2025
1 parent a90d7b2 commit 24fb6b5
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import java.util.Set;
import lombok.Getter;
import lombok.Setter;
import org.hisp.dhis.attribute.AttributeValue;
import org.hisp.dhis.fileresource.FileResource;
import org.hisp.dhis.organisationunit.OrganisationUnit;
import org.hisp.dhis.security.acl.Access;
Expand Down Expand Up @@ -99,6 +100,8 @@ public MeDto(
this.programs = programs;
this.dataSets = dataSets;
this.patTokens = patTokens;

this.attributeValues = user.getAttributeValues();
}

@JsonProperty() private String id;
Expand Down Expand Up @@ -189,7 +192,5 @@ public MeDto(

@JsonProperty() private List<ApiToken> patTokens;

protected void setUserCredentials(UserCredentialsDto userCredentialsDto) {
this.userCredentials = userCredentialsDto;
}
@JsonProperty() private Set<AttributeValue> attributeValues;
}

0 comments on commit 24fb6b5

Please sign in to comment.