diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2016-11-29 16:02:28 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2016-12-21 14:18:15 +0300 |
commit | 7086dac42fff6e32bc38b389ffa104d9c21a159c (patch) | |
tree | 039fbb7c6c4d003310b8d500760f4834e2de1fb1 /app/controllers/projects/commit_controller.rb | |
parent | 9a82aa70e3f3ff679c7a27ccbb9d497576b20822 (diff) |
Changes after review
Fix broken test
Remove spinach tests for the builds tab
Diffstat (limited to 'app/controllers/projects/commit_controller.rb')
-rw-r--r-- | app/controllers/projects/commit_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/commit_controller.rb b/app/controllers/projects/commit_controller.rb index 3a5bf7d9ff5..791ed88db30 100644 --- a/app/controllers/projects/commit_controller.rb +++ b/app/controllers/projects/commit_controller.rb @@ -8,6 +8,7 @@ class Projects::CommitController < Projects::ApplicationController # Authorize before_action :require_non_empty_project + before_action :authorize_download_code! before_action :authorize_read_pipeline!, only: [:pipelines] before_action :commit before_action :define_commit_vars, only: [:show, :diff_for_path, :pipelines] @@ -107,7 +108,6 @@ class Projects::CommitController < Projects::ApplicationController def define_status_vars @ci_pipelines = project.pipelines.where(sha: commit.sha) - @statuses = CommitStatus.where(pipeline: @ci_pipelines).relevant end def assign_change_commit_vars(mr_source_branch) |