diff options
author | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2017-12-20 10:08:54 +0100 |
---|---|---|
committer | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2018-04-23 09:21:55 +0200 |
commit | cc4bc22ae49582652413d45aa2f5b39dd2a15a82 (patch) | |
tree | 282c728ef4cd89162d9993fc48c5512be40992a0 /lib/api | |
parent | 1a009f1bdb4d75dd511df5f15705fcf8ee9d20dd (diff) | |
download | gitlab-ce-cc4bc22ae49582652413d45aa2f5b39dd2a15a82.tar.gz |
runner can't be assigned to more than 1 group
therefore we don't need the api check.
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/runners.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/api/runners.rb b/lib/api/runners.rb index 84d33879c38..1a05bed3465 100644 --- a/lib/api/runners.rb +++ b/lib/api/runners.rb @@ -199,7 +199,6 @@ module API forbidden!("Runner is shared") if runner.is_shared? forbidden!("Runner associated with more than one project") if runner.projects.count > 1 - forbidden!("Runner associated with more that one group") if runner.groups.count > 1 forbidden!("No access granted") unless user_can_access_runner?(runner) end |