Skip to content

Make GraphQL types authorizable

It might come in handy to be able to call authorize :read_* on a type, like we can on a field:

module Types
  class ProjectType < BaseObject
    authorize :read_project
...

I think we can extend the Gitlab::Graphql::Authorize module to support this