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/api
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-01-20 03:10:22 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-20 03:10:22 +0300
commit2f37c1fa002f7be0f978d82bfe545305be48093e (patch)
treee0e9d505434e88363fc607ca00d7cb39e94a3f70 /lib/api
parent9bc3ee9ad4c857570b7a029345cc6fff3ed46b5f (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/debian_group_packages.rb4
-rw-r--r--lib/api/debian_project_packages.rb4
-rw-r--r--lib/api/group_debian_distributions.rb4
-rw-r--r--lib/api/helpers.rb2
-rw-r--r--lib/api/project_debian_distributions.rb4
5 files changed, 0 insertions, 18 deletions
diff --git a/lib/api/debian_group_packages.rb b/lib/api/debian_group_packages.rb
index 483d0dd9c90..67416e62f7d 100644
--- a/lib/api/debian_group_packages.rb
+++ b/lib/api/debian_group_packages.rb
@@ -6,10 +6,6 @@ module API
project_id: %r{[0-9]+}.freeze
).freeze
- before do
- not_found! if Gitlab::FIPS.enabled?
- end
-
resource :groups, requirements: API::NAMESPACE_OR_PROJECT_REQUIREMENTS do
helpers do
def project_or_group
diff --git a/lib/api/debian_project_packages.rb b/lib/api/debian_project_packages.rb
index 353f64b8dd1..02f1e02e3cd 100644
--- a/lib/api/debian_project_packages.rb
+++ b/lib/api/debian_project_packages.rb
@@ -14,10 +14,6 @@ module API
file_name: API::NO_SLASH_URL_PART_REGEX
}.freeze
- before do
- not_found! if Gitlab::FIPS.enabled?
- end
-
resource :projects, requirements: API::NAMESPACE_OR_PROJECT_REQUIREMENTS do
helpers do
def project_or_group
diff --git a/lib/api/group_debian_distributions.rb b/lib/api/group_debian_distributions.rb
index 8b6d4b8c4b2..9946199f7a8 100644
--- a/lib/api/group_debian_distributions.rb
+++ b/lib/api/group_debian_distributions.rb
@@ -6,10 +6,6 @@ module API
requires :id, types: [String, Integer], desc: 'The ID or URL-encoded path of the group'
end
- before do
- not_found! if Gitlab::FIPS.enabled?
- end
-
resource :groups, requirements: API::NAMESPACE_OR_PROJECT_REQUIREMENTS do
after_validation do
require_packages_enabled!
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index 38430aac455..55aac68daaa 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -698,8 +698,6 @@ module API
end
def validate_search_rate_limit!
- return unless Feature.enabled?(:rate_limit_issuable_searches)
-
if current_user
check_rate_limit!(:search_rate_limit, scope: [current_user])
else
diff --git a/lib/api/project_debian_distributions.rb b/lib/api/project_debian_distributions.rb
index 856b4097b5a..fc94107f88d 100644
--- a/lib/api/project_debian_distributions.rb
+++ b/lib/api/project_debian_distributions.rb
@@ -6,10 +6,6 @@ module API
requires :id, types: [String, Integer], desc: 'The ID or URL-encoded path of the project'
end
- before do
- not_found! if Gitlab::FIPS.enabled?
- end
-
resource :projects, requirements: API::NAMESPACE_OR_PROJECT_REQUIREMENTS do
after_validation do
require_packages_enabled!