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

Again! For admin.
This commit is contained in:
Lin Jen-Shin 2016-06-16 23:31:54 +08:00
parent ae0e1e402e
commit 314befded7
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ class Admin::RunnerProjectsController < Admin::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?
runner_project = @runner.assign_to(@project, current_user)