Edit beneficiaries handler to show diags related to a beneficiary
This commit is contained in:
parent
1c4371b121
commit
064cb2df16
|
@ -326,7 +326,10 @@ func (h *ApplicationHandler) BeneficiaryDisplay(w http.ResponseWriter, r *http.R
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, d := range diagsresp.Diags {
|
for _, d := range diagsresp.Diags {
|
||||||
diag = append(diag, d.ToStorageType())
|
diagData := d.Data.AsMap()
|
||||||
|
if beneficiary, ok := diagData["beneficiary"].(string); ok && beneficiary == beneficiaryID {
|
||||||
|
diag = append(diag, d.ToStorageType())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
groupsrequest := &groupsmanagement.GetGroupsRequest{
|
groupsrequest := &groupsmanagement.GetGroupsRequest{
|
||||||
|
|
Loading…
Reference in New Issue