summaryrefslogtreecommitdiff
path: root/app/serializers
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-06-26 11:36:54 +0200
committerKamil Trzciński <ayufan@ayufan.eu>2018-06-26 15:53:09 +0200
commitca93faf15f822cbf3eda5e87d4aaaaa81d413a8b (patch)
tree39dec7f4ac7269ae2a30d22e15584b4b3385b144 /app/serializers
parent7da7af3a22058a6fb4e22cbf2b659e910cc92d54 (diff)
downloadgitlab-ce-ca93faf15f822cbf3eda5e87d4aaaaa81d413a8b.tar.gz
Remove the use of `is_shared` of `Ci::Runner`remove-is-shared-from-ci-runners
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/runner_entity.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/runner_entity.rb b/app/serializers/runner_entity.rb
index e9999a36d8a..db26eadab2d 100644
--- a/app/serializers/runner_entity.rb
+++ b/app/serializers/runner_entity.rb
@@ -4,7 +4,7 @@ class RunnerEntity < Grape::Entity
expose :id, :description
expose :edit_path,
- if: -> (*) { can?(request.current_user, :admin_build, project) && runner.specific? } do |runner|
+ if: -> (*) { can?(request.current_user, :admin_build, project) && runner.project_type? } do |runner|
edit_project_runner_path(project, runner)
end