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
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-11-24 09:09:56 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-11-24 09:09:56 +0300
commit3d1f123313fc350f217081c6ccf38169420bf92d (patch)
tree8c2849e22d07e1db01f2748613060a5dadebf71f /lib/api/helpers.rb
parentbec5b7b1b68ddc670a1566a36037402c3c37e0f3 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r--lib/api/helpers.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index bb94d5d14d0..7c57666b843 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -146,7 +146,7 @@ module API
if id.is_a?(Integer) || id =~ INTEGER_ID_REGEX
projects.find_by(id: id)
elsif id.include?("/")
- projects.find_by_full_path(id, follow_redirects: Feature.enabled?(:api_redirect_moved_projects))
+ projects.find_by_full_path(id, follow_redirects: true)
end
end
# rubocop: enable CodeReuse/ActiveRecord
@@ -905,7 +905,6 @@ module API
end
def project_moved?(id, project)
- return false unless Feature.enabled?(:api_redirect_moved_projects)
return false unless id.is_a?(String) && id.include?('/')
return false if project.blank? || project.full_path.casecmp?(id)
return false unless params[:id] == id