diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-10 14:42:55 +0200 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-16 10:52:28 +0200 |
commit | c3f9d80a6e0950361e056ded4107015d3923f56d (patch) | |
tree | 91155d2ef99e8fd9feca798b1a6dd1d3f5519d9d /lib/api/v3 | |
parent | 18821b157dbf3a73637ab741e8154b5133ce0e72 (diff) | |
download | gitlab-ce-c3f9d80a6e0950361e056ded4107015d3923f56d.tar.gz |
Rename User#ci_authorized_runners -> ci_owned_runners
Diffstat (limited to 'lib/api/v3')
-rw-r--r-- | lib/api/v3/runners.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/v3/runners.rb b/lib/api/v3/runners.rb index c6d9957d452..8a5c46805bd 100644 --- a/lib/api/v3/runners.rb +++ b/lib/api/v3/runners.rb @@ -58,7 +58,7 @@ module API end def user_can_access_runner?(runner) - current_user.ci_authorized_runners.exists?(runner.id) + current_user.ci_owned_runners.exists?(runner.id) end end end |