Fix typo. It's ivar and the column was called locked

This commit is contained in:
Lin Jen-Shin 2016-06-15 17:29:07 +08:00
parent 9cf45b0586
commit c866b906e6
1 changed files with 1 additions and 1 deletions

View File

@ -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)