Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ae1c4d0d
Commit
ae1c4d0d
authored
Aug 18, 2020
by
lauraMon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moves authorizations to resolvers
parent
8a36ec52
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
app/graphql/mutations/ci/base.rb
app/graphql/mutations/ci/base.rb
+0
-3
app/graphql/mutations/ci/pipeline_destroy.rb
app/graphql/mutations/ci/pipeline_destroy.rb
+2
-0
app/graphql/mutations/ci/pipeline_retry.rb
app/graphql/mutations/ci/pipeline_retry.rb
+2
-0
No files found.
app/graphql/mutations/ci/base.rb
View file @
ae1c4d0d
...
...
@@ -13,9 +13,6 @@ module Mutations
null:
true
,
description:
'The pipeline after mutation'
authorize
:update_pipeline
authorize
:destroy_pipeline
private
def
find_object
(
id
:)
...
...
app/graphql/mutations/ci/pipeline_destroy.rb
View file @
ae1c4d0d
...
...
@@ -5,6 +5,8 @@ module Mutations
class
PipelineDestroy
<
Base
graphql_name
'PipelineDestroy'
authorize
:destroy_pipeline
def
resolve
(
id
:)
pipeline
=
authorized_find!
(
id:
id
)
project
=
pipeline
.
project
...
...
app/graphql/mutations/ci/pipeline_retry.rb
View file @
ae1c4d0d
...
...
@@ -5,6 +5,8 @@ module Mutations
class
PipelineRetry
<
Base
graphql_name
'PipelineRetry'
authorize
:update_pipeline
def
resolve
(
id
:)
pipeline
=
authorized_find!
(
id:
id
)
project
=
pipeline
.
project
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment