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/snippet_type.rb')
-rw-r--r--app/graphql/types/snippet_type.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/graphql/types/snippet_type.rb b/app/graphql/types/snippet_type.rb
index 6e6d0edbe15..16f01979a43 100644
--- a/app/graphql/types/snippet_type.rb
+++ b/app/graphql/types/snippet_type.rb
@@ -45,6 +45,11 @@ module Types
description: 'Visibility Level of the snippet.',
null: false
+ field :hidden, GraphQL::Types::Boolean,
+ description: 'Indicates the snippet is hidden because the author has been banned.',
+ null: false,
+ method: :hidden_due_to_author_ban?
+
field :created_at, Types::TimeType,
description: 'Timestamp this snippet was created.',
null: false