diff options
Diffstat (limited to 'app/controllers/projects/commit_controller.rb')
-rw-r--r-- | app/controllers/projects/commit_controller.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/app/controllers/projects/commit_controller.rb b/app/controllers/projects/commit_controller.rb index 493cd332d9f..21f4d9f44ec 100644 --- a/app/controllers/projects/commit_controller.rb +++ b/app/controllers/projects/commit_controller.rb @@ -10,11 +10,6 @@ class Projects::CommitController < Projects::ApplicationController before_action :commit before_action :define_show_vars, only: [:show, :builds] - # Skip authentication for status badge only - skip_before_action :authenticate_user!, :reject_blocked!, :project, - :repository, :require_non_empty_project, :authorize_download_code!, - :commit, only: [:badge] - def show return git_not_found! unless @commit @@ -62,12 +57,6 @@ class Projects::CommitController < Projects::ApplicationController render layout: false end - def badge - project = Project.find_with_namespace("#{params[:namespace_id]}/#{params[:project_id]}") - image = Ci::ImageForBuildService.new.execute(project, ref: params[:id]) - send_file(image.path, filename: image.name, disposition: 'inline', type: 'image/svg+xml') - end - private def commit |