diff --git a/object/resource.go b/object/resource.go index bb66aa22..160fa110 100644 --- a/object/resource.go +++ b/object/resource.go @@ -46,7 +46,7 @@ func GetResourceCount(owner, user, field, value string) (int64, error) { } func GetResources(owner string, user string) ([]*Resource, error) { - if owner == "built-in" { + if owner == "built-in" || owner == "" { owner = "" user = "" } @@ -61,7 +61,7 @@ func GetResources(owner string, user string) ([]*Resource, error) { } func GetPaginationResources(owner, user string, offset, limit int, field, value, sortField, sortOrder string) ([]*Resource, error) { - if owner == "built-in" { + if owner == "built-in" || owner == "" { owner = "" user = "" }