summaryrefslogtreecommitdiff
path: root/lib/api/v3
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2018-05-10 14:42:55 +0200
committerDylan Griffith <dyl.griffith@gmail.com>2018-05-16 10:52:28 +0200
commitc3f9d80a6e0950361e056ded4107015d3923f56d (patch)
tree91155d2ef99e8fd9feca798b1a6dd1d3f5519d9d /lib/api/v3
parent18821b157dbf3a73637ab741e8154b5133ce0e72 (diff)
downloadgitlab-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.rb2
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