Fix typo. It's ivar and the column was called locked
This commit is contained in:
parent
9cf45b0586
commit
c866b906e6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue