summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-06-15 17:29:07 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-06-15 17:29:07 +0800
commitc866b906e67d42d9ad9537e8a6d6a254c3f74d8b (patch)
tree2b894481e134fb6beecf7828c8ac88b10a4311d8 /app/controllers
parent9cf45b058627f039040165519de9c2074dda141f (diff)
downloadgitlab-ce-c866b906e67d42d9ad9537e8a6d6a254c3f74d8b.tar.gz
Fix typo. It's ivar and the column was called locked
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/projects/runner_projects_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/runner_projects_controller.rb b/app/controllers/projects/runner_projects_controller.rb
index 2413e583d7b..dc1a18f8d42 100644
--- a/app/controllers/projects/runner_projects_controller.rb
+++ b/app/controllers/projects/runner_projects_controller.rb
@@ -6,7 +6,7 @@ class Projects::RunnerProjectsController < Projects::ApplicationController
def create
@runner = Ci::Runner.find(params[:runner_project][:runner_id])
- return head(403) if runner.is_shared? || runner.is_locked?
+ return head(403) if @runner.is_shared? || @runner.locked?
return head(403) unless current_user.ci_authorized_runners.include?(@runner)
path = runners_path(project)