Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2024-01-18 00:09:04 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2024-01-18 00:09:04 +0300
commitde4ded959429f492c51ecf6c9a993dc2c3237fa5 (patch)
treea1ec5392ce757a8ad0d47e67b424451b9ffe98c0 /app
parent003efb27fc4d7d0571979553c602fccfbf5ad0c2 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app')
-rw-r--r--app/controllers/projects/artifacts_controller.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/controllers/projects/artifacts_controller.rb b/app/controllers/projects/artifacts_controller.rb
index 85bdeb07b00..c675e4bb61c 100644
--- a/app/controllers/projects/artifacts_controller.rb
+++ b/app/controllers/projects/artifacts_controller.rb
@@ -39,6 +39,8 @@ class Projects::ArtifactsController < Projects::ApplicationController
return render_404 unless artifact_file
log_artifacts_filesize(artifact_file.model)
+ audit_download(build, artifact_file.filename)
+
send_upload(artifact_file, attachment: artifact_file.filename, proxy: params[:proxy])
end
@@ -106,6 +108,10 @@ class Projects::ArtifactsController < Projects::ApplicationController
private
+ def audit_download(build, filename)
+ # overridden in EE
+ end
+
def extract_ref_name_and_path
return unless params[:ref_name_and_path]
@@ -184,3 +190,5 @@ class Projects::ArtifactsController < Projects::ApplicationController
return access_denied! unless can?(current_user, :read_job_artifacts, job_artifact)
end
end
+
+Projects::ArtifactsController.prepend_mod