summaryrefslogtreecommitdiff
path: root/app/services/ci
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-08-29 15:56:03 +0900
committerShinya Maeda <shinya@gitlab.com>2017-09-03 23:49:10 +0900
commit1024718e9fddbb0d61d3f64f44303964641fcdd8 (patch)
tree3eef4777a58c9d3e798827ca39e3a5fa0602088c /app/services/ci
parent3875983205fd3cdbdc93f18b118deaf098d75af1 (diff)
downloadgitlab-ce-1024718e9fddbb0d61d3f64f44303964641fcdd8.tar.gz
Refactor access_level to not_protected and ref_protected
Diffstat (limited to 'app/services/ci')
-rw-r--r--app/services/ci/register_job_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/ci/register_job_service.rb b/app/services/ci/register_job_service.rb
index 1f243de5761..b8db709211a 100644
--- a/app/services/ci/register_job_service.rb
+++ b/app/services/ci/register_job_service.rb
@@ -78,7 +78,7 @@ module Ci
def new_builds
builds = Ci::Build.pending.unstarted
- builds = builds.protected_ if runner.protected_?
+ builds = builds.ref_protected if runner.ref_protected?
builds
end