summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2018-04-30 10:43:29 +0400
committerDylan Griffith <dyl.griffith@gmail.com>2018-04-30 10:43:29 +0400
commit5652ff953cba9773edbcb677908fe3f18b103be3 (patch)
tree0b799f9cbc6f78b93600169b633da60cc8a23058 /lib/api
parent8604dbe9f6768a8bb44bf1e1b144f7fd216f3641 (diff)
downloadgitlab-ce-5652ff953cba9773edbcb677908fe3f18b103be3.tar.gz
Rename Runner#group? -> #assigned_to_group? and Runner#project? -> #assigned_to_project?
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/runners.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/runners.rb b/lib/api/runners.rb
index 1a05bed3465..11c31917fc5 100644
--- a/lib/api/runners.rb
+++ b/lib/api/runners.rb
@@ -205,7 +205,7 @@ module API
def authenticate_enable_runner!(runner)
forbidden!("Runner is shared") if runner.is_shared?
forbidden!("Runner is locked") if runner.locked?
- forbidden!("Runner is a group runner") if runner.group?
+ forbidden!("Runner is a group runner") if runner.assigned_to_group?
return if current_user.admin?
forbidden!("No access granted") unless user_can_access_runner?(runner)