Skip to content
Snippets Groups Projects
Unverified Commit 431de717 authored by Lucas Charles's avatar Lucas Charles
Browse files

Use declared_params within Vulnerabilities API

parent 05c28343
No related merge requests found
......@@ -38,7 +38,7 @@ def vulnerability_occurrences_by(params)
not_found!('Project') unless project && can?(current_user, :read_project_security_dashboard, project)
vulnerability_occurrences = Kaminari.paginate_array(
vulnerability_occurrences_by(params.merge(project: project))
vulnerability_occurrences_by(declared_params.merge(project: project))
)
present paginate(vulnerability_occurrences),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment