From a4db97517ad095914c0652a07486ac607d99dab4 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Tue, 19 Dec 2023 12:10:37 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- lib/api/helpers.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/api/helpers.rb') diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index f5dcbc07704..6cb9d19a2ad 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -184,8 +184,7 @@ module API return true unless job_token_authentication? return true unless route_authentication_setting[:job_token_scope] == :project - ::Feature.enabled?(:ci_job_token_scope, project) && - current_authenticated_job.project == project + current_authenticated_job.project == project end # rubocop: disable CodeReuse/ActiveRecord -- cgit v1.2.3