summaryrefslogtreecommitdiff
path: root/lib/api/issues.rb
diff options
context:
space:
mode:
authorAdam Niedzielski <adamsunday@gmail.com>2017-03-20 18:03:29 +0100
committerAdam Niedzielski <adamsunday@gmail.com>2017-03-20 18:03:29 +0100
commit8ab347b392bc635ebfb0eb1663bff7d0048fc5c9 (patch)
tree46e2d8e6436db9e81fdb7a92bc9b5488806cc611 /lib/api/issues.rb
parenta1a04828e36f71e27b0a9958efd912989f826a9d (diff)
downloadgitlab-ce-8ab347b392bc635ebfb0eb1663bff7d0048fc5c9.tar.gz
Return 404 in project issues API endpoint when project cannot be found
Closes #29631
Diffstat (limited to 'lib/api/issues.rb')
-rw-r--r--lib/api/issues.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/issues.rb b/lib/api/issues.rb
index b3183357625..fd2674910d2 100644
--- a/lib/api/issues.rb
+++ b/lib/api/issues.rb
@@ -91,7 +91,7 @@ module API
use :issues_params
end
get ":id/issues" do
- project = find_project(params[:id])
+ project = find_project!(params[:id])
issues = find_issues(project_id: project.id)