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:
authorLuke Duncalfe <lduncalfe@eml.cc>2019-07-01 07:44:51 +0300
committerLuke Duncalfe <lduncalfe@eml.cc>2019-07-11 06:08:34 +0300
commit67030789f5f5eff1d558e04cfbc9bf60316c46f0 (patch)
tree76a4ca3eccc18e381ddbaf88b89946df1fcc1403 /doc/development/api_graphql_styleguide.md
parent056166db0adbc34a8f7d8cf04136ed1ae976c9bb (diff)
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.
Diffstat (limited to 'doc/development/api_graphql_styleguide.md')
-rw-r--r--doc/development/api_graphql_styleguide.md8
1 files changed, 2 insertions, 6 deletions
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