Commit 8583e4a1 authored by Dylan Griffith's avatar Dylan Griffith

Change policy list_runner_jobs -> read_runner

parent c3f9d80a
...@@ -10,7 +10,6 @@ module Ci ...@@ -10,7 +10,6 @@ module Ci
rule { admin | owned_runner }.enable :read_runner rule { admin | owned_runner }.enable :read_runner
rule { admin | owned_runner }.enable :update_runner rule { admin | owned_runner }.enable :update_runner
rule { admin | owned_runner }.enable :delete_runner rule { admin | owned_runner }.enable :delete_runner
rule { admin | owned_runner }.enable :list_runner_jobs
rule { ~admin & locked }.prevent :assign_runner rule { ~admin & locked }.prevent :assign_runner
end end
end end
...@@ -214,7 +214,7 @@ module API ...@@ -214,7 +214,7 @@ module API
def authenticate_list_runners_jobs!(runner) def authenticate_list_runners_jobs!(runner)
return if current_user.admin? 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 end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment