Fix typo. It's ivar and the column was called locked
Again! For admin.
This commit is contained in:
parent
ae0e1e402e
commit
314befded7
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ class Admin::RunnerProjectsController < Admin::ApplicationController
|
||||||
def create
|
def create
|
||||||
@runner = Ci::Runner.find(params[:runner_project][:runner_id])
|
@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)
|
runner_project = @runner.assign_to(@project, current_user)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue