Commit 314befde authored by Lin Jen-Shin's avatar Lin Jen-Shin

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

Again! For admin.
parent ae0e1e40
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment