diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-09 14:46:34 +0200 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-16 10:52:28 +0200 |
commit | 846f73b53b8a6d3bc1f18607630d7a7853cb9d13 (patch) | |
tree | df9839140353d8bdfff777ccb71eaad1b1f4e8df /lib/api/runners.rb | |
parent | 4790e726d31562b68fec283173e9885df8a5cdda (diff) | |
download | gitlab-ce-846f73b53b8a6d3bc1f18607630d7a7853cb9d13.tar.gz |
Allow group runners to be viewed/edited in API
Diffstat (limited to 'lib/api/runners.rb')
-rw-r--r-- | lib/api/runners.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/runners.rb b/lib/api/runners.rb index 5f2a9567605..1b528a8490c 100644 --- a/lib/api/runners.rb +++ b/lib/api/runners.rb @@ -205,6 +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_type? return if current_user.admin? forbidden!("No access granted") unless user_can_access_runner?(runner) |