light modification

This commit is contained in:
mr
2025-01-17 14:54:17 +01:00
parent 66196da877
commit c63a1fef6c
4 changed files with 10 additions and 0 deletions

View File

@@ -88,6 +88,9 @@ func (ao *AbstractObject) VerifyAuth(request *tools.APIRequest) bool {
}
func (ao *AbstractObject) GetObjectFilters(search string) *dbs.Filters {
if search == "*" {
search = ""
}
return &dbs.Filters{
Or: map[string][]dbs.Filter{ // filter by name if no filters are provided
"abstractobject.name": {{Operator: dbs.LIKE.String(), Value: search}},