mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #13200 from zhaoxiangchun/fix/zxc-master
fix(common): ListItemFilter func exec in the end
This commit is contained in:
@@ -264,10 +264,6 @@ func listItemQueryFiltersRaw(manager IModelManager,
|
||||
q = manager.FilterBySystemAttributes(q, userCred, query, queryScope)
|
||||
q = manager.FilterByHiddenSystemAttributes(q, userCred, query, queryScope)
|
||||
}
|
||||
q, err = ListItemFilter(manager, ctx, q, userCred, query)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if query.Contains("export_keys") {
|
||||
exportKeys, _ := query.GetString("export_keys")
|
||||
keys := stringutils2.NewSortedStrings(strings.Split(exportKeys, ","))
|
||||
@@ -305,6 +301,10 @@ func listItemQueryFiltersRaw(manager IModelManager,
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
q, err = ListItemFilter(manager, ctx, q, userCred, query)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return q, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user