Skip to content

Commit

Permalink
fix: add back attribute values at /me endpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Morten Svanaes <[email protected]>
  • Loading branch information
netroms committed Dec 19, 2024
1 parent 5c18694 commit 065a49f
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 065a49f

Please sign in to comment.