mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Bugfix: remove filter validation (#21399)
This commit is contained in:
parent
83be4f1d8b
commit
5b9074836e
1 changed files with 0 additions and 4 deletions
|
|
@ -96,10 +96,6 @@ func (ds *Datastore) ListSoftwareTitles(
|
|||
opt.ListOptions.OrderDirection = fleet.OrderDescending
|
||||
}
|
||||
|
||||
if opt.AvailableForInstall && opt.VulnerableOnly {
|
||||
return nil, 0, nil, fleet.NewInvalidArgumentError("query", "available_for_install and vulnerable can't be provided together")
|
||||
}
|
||||
|
||||
if (opt.MinimumCVSS > 0 || opt.MaximumCVSS > 0 || opt.KnownExploit) && !opt.VulnerableOnly {
|
||||
return nil, 0, nil, fleet.NewInvalidArgumentError("query", "min_cvss_score, max_cvss_score, and exploit can only be provided with vulnerable=true")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue