diff --git a/handler/users.go b/handler/users.go index 42a0603..dbe8cff 100644 --- a/handler/users.go +++ b/handler/users.go @@ -42,7 +42,7 @@ func (h *Handler) GetUsers(c echo.Context) error { utils.ApplySort(tx, sortCol, isDesc) utils.ApplyFilters(tx, filterCol, filterVal) - tx = tx.Preload("Position").Find(&users) + tx = tx.Preload("Position").Omit("Password").Find(&users) if tx.RowsAffected == 1 { return c.JSON(http.StatusOK, users[0])