diff options
Diffstat (limited to 'app/policies/ci/runner_manager_policy.rb')
-rw-r--r-- | app/policies/ci/runner_manager_policy.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/policies/ci/runner_manager_policy.rb b/app/policies/ci/runner_manager_policy.rb index 43e81e373fc..ef0ae9135b2 100644 --- a/app/policies/ci/runner_manager_policy.rb +++ b/app/policies/ci/runner_manager_policy.rb @@ -2,9 +2,7 @@ module Ci class RunnerManagerPolicy < BasePolicy - with_options scope: :subject, score: 0 - - condition(:can_read_runner, scope: :subject) do + condition(:can_read_runner) do can?(:read_runner, @subject.runner) end |