diff --git a/plugin/api/rbac/role.go b/plugin/api/rbac/role.go index c9c2d65e..86029c6c 100644 --- a/plugin/api/rbac/role.go +++ b/plugin/api/rbac/role.go @@ -73,6 +73,7 @@ func (h Rbac) SearchRole(w http.ResponseWriter, r *http.Request, ps httprouter.P Source: enum.BuildRoles["admin"], }) response.Hits.Hits = list + response.Hits.Total = response.GetTotal() + 1 h.WriteOKJSON(w, response) return