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:
Diffstat (limited to 'app/graphql/types/query_type.rb')
-rw-r--r--app/graphql/types/query_type.rb9
1 files changed, 2 insertions, 7 deletions
diff --git a/app/graphql/types/query_type.rb b/app/graphql/types/query_type.rb
index f0430a47a7f..759819ba34b 100644
--- a/app/graphql/types/query_type.rb
+++ b/app/graphql/types/query_type.rb
@@ -17,7 +17,8 @@ module Types
field :ci_variables,
Types::Ci::InstanceVariableType.connection_type,
null: true,
- description: "List of the instance's CI/CD variables."
+ description: "List of the instance's CI/CD variables.",
+ resolver: Resolvers::Ci::VariablesResolver
field :container_repository, Types::ContainerRepositoryDetailsType,
null: true,
description: 'Find a container repository.' do
@@ -167,12 +168,6 @@ module Types
application_settings
end
- def ci_variables
- return unless current_user&.can_admin_all_resources?
-
- ::Ci::InstanceVariable.all
- end
-
def application_settings
Gitlab::CurrentSettings.current_application_settings
end