mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-12 11:43:39 +08:00
Fix get datasets owner retrieve the whole dataset (#17370)
This commit is contained in:
@@ -77,6 +77,16 @@ func (h *DatasetsHandler) ListDatasets(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
if c.Query("type") == "filter" {
|
||||
data, code, err := h.datasetsService.ListDatasetFilters(user.ID)
|
||||
if err != nil {
|
||||
common.ErrorWithCode(c, code, err.Error())
|
||||
return
|
||||
}
|
||||
common.SuccessNoMessage(c, data)
|
||||
return
|
||||
}
|
||||
|
||||
page := 1
|
||||
if pageStr := c.Query("page"); pageStr != "" {
|
||||
if p, err := strconv.Atoi(pageStr); err == nil && p > 0 {
|
||||
|
||||
Reference in New Issue
Block a user