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/lib
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-08-28 19:54:04 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-08-28 19:54:04 +0300
commit60d9342b3b0dfb6b1fab71e8edff869529dd3794 (patch)
tree6304809f9949ce4592e3808b92bb5bfbf5dbb1d9 /lib
parent043c499d369387a8128ca4d7de69dd4ae0f53a38 (diff)
Add latest changes from gitlab-org/gitlab@16-3-stable-ee
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/content_security_policy/config_loader.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/content_security_policy/config_loader.rb b/lib/gitlab/content_security_policy/config_loader.rb
index 9fb3c7d362f..59a4e425b85 100644
--- a/lib/gitlab/content_security_policy/config_loader.rb
+++ b/lib/gitlab/content_security_policy/config_loader.rb
@@ -84,7 +84,7 @@ module Gitlab
end
def allow_lfs(directives)
- return unless Gitlab.config.lfs.enabled && LfsObjectUploader.direct_download_enabled?
+ return unless Gitlab.config.lfs.enabled && LfsObjectUploader.object_store_enabled? && LfsObjectUploader.direct_download_enabled?
lfs_url = build_lfs_url
return unless lfs_url.present?