diff options
author | Adam Niedzielski <adamsunday@gmail.com> | 2017-03-20 18:03:29 +0100 |
---|---|---|
committer | Adam Niedzielski <adamsunday@gmail.com> | 2017-03-20 18:03:29 +0100 |
commit | 8ab347b392bc635ebfb0eb1663bff7d0048fc5c9 (patch) | |
tree | 46e2d8e6436db9e81fdb7a92bc9b5488806cc611 /lib/api/issues.rb | |
parent | a1a04828e36f71e27b0a9958efd912989f826a9d (diff) | |
download | gitlab-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.rb | 2 |
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) |