Commit 161c4948 authored by Alex Kalderimis's avatar Alex Kalderimis

Add DSL authorize method

This is necessary since jobs can be returned from
app/graphql/types/terraform/state_version_type.rb
parent 7da180f3
...@@ -5,6 +5,7 @@ module Types ...@@ -5,6 +5,7 @@ module Types
# rubocop: disable Graphql/AuthorizeTypes # rubocop: disable Graphql/AuthorizeTypes
class JobType < BaseObject class JobType < BaseObject
graphql_name 'CiJob' graphql_name 'CiJob'
authorize :read_build
field :pipeline, Types::Ci::PipelineType, null: false, field :pipeline, Types::Ci::PipelineType, null: false,
description: 'Pipeline the job belongs to' description: 'Pipeline the job belongs to'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment