diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-06-04 00:02:40 +0200 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-06-04 00:02:40 +0200 |
commit | 1f608ac4614f57130992916931ad10f4d5fd9d50 (patch) | |
tree | 803649eaad7344af932ec82427cda67e24313bee /app/controllers/projects/artifacts_controller.rb | |
parent | 9aca0a1f96d0480ff61c92603acb2d6a987dd271 (diff) | |
download | gitlab-ce-1f608ac4614f57130992916931ad10f4d5fd9d50.tar.gz |
Remove 'unscoped' from project builds selection
Diffstat (limited to 'app/controllers/projects/artifacts_controller.rb')
-rw-r--r-- | app/controllers/projects/artifacts_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/artifacts_controller.rb b/app/controllers/projects/artifacts_controller.rb index cfea1266516..832d7deb57d 100644 --- a/app/controllers/projects/artifacts_controller.rb +++ b/app/controllers/projects/artifacts_controller.rb @@ -37,7 +37,7 @@ class Projects::ArtifactsController < Projects::ApplicationController private def build - @build ||= project.builds.unscoped.find_by!(id: params[:build_id]) + @build ||= project.builds.find_by!(id: params[:build_id]) end def artifacts_file |