From 67030789f5f5eff1d558e04cfbc9bf60316c46f0 Mon Sep 17 00:00:00 2001 From: Luke Duncalfe Date: Mon, 1 Jul 2019 16:44:51 +1200 Subject: Include AuthorizeResource module for all mutations This makes our authorization calls available to all GraphQL mutations without the additional step of including the module first. --- doc/development/api_graphql_styleguide.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'doc') diff --git a/doc/development/api_graphql_styleguide.md b/doc/development/api_graphql_styleguide.md index c83a0427c98..7569ccc04c1 100644 --- a/doc/development/api_graphql_styleguide.md +++ b/doc/development/api_graphql_styleguide.md @@ -424,12 +424,8 @@ Will generate a field called `mergeRequestSetWip` that ### Authorizing resources -To authorize resources inside a mutation, we can include the -`Gitlab::Graphql::Authorize::AuthorizeResource` concern in the -mutation. - -This allows us to provide the required abilities on the mutation like -this: +To authorize resources inside a mutation, we first provide the required + abilities on the mutation like this: ```ruby module Mutations -- cgit v1.2.1