Edit beneficiaries handler to show diags related to a beneficiary
This commit is contained in:
@@ -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{
|
||||||
|
|||||||
Reference in New Issue
Block a user