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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
8583e4a1
Commit
8583e4a1
authored
May 10, 2018
by
Dylan Griffith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change policy list_runner_jobs -> read_runner
parent
c3f9d80a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
app/policies/ci/runner_policy.rb
app/policies/ci/runner_policy.rb
+0
-1
lib/api/runners.rb
lib/api/runners.rb
+1
-1
No files found.
app/policies/ci/runner_policy.rb
View file @
8583e4a1
...
...
@@ -10,7 +10,6 @@ module Ci
rule
{
admin
|
owned_runner
}.
enable
:read_runner
rule
{
admin
|
owned_runner
}.
enable
:update_runner
rule
{
admin
|
owned_runner
}.
enable
:delete_runner
rule
{
admin
|
owned_runner
}.
enable
:list_runner_jobs
rule
{
~
admin
&
locked
}.
prevent
:assign_runner
end
end
lib/api/runners.rb
View file @
8583e4a1
...
...
@@ -214,7 +214,7 @@ module API
def
authenticate_list_runners_jobs!
(
runner
)
return
if
current_user
.
admin?
forbidden!
(
"No access granted"
)
unless
can?
(
current_user
,
:
list_runner_jobs
,
runner
)
forbidden!
(
"No access granted"
)
unless
can?
(
current_user
,
:
read_runner
,
runner
)
end
end
end
...
...
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