diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-15 22:21:40 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-15 22:21:46 +0300 |
commit | 5285e01d54cff68db99aaa4b15a87d8d4c0333ab (patch) | |
tree | e4a97185bb9687bffe5a22afb1677b992a8c540f /app/controllers | |
parent | 9621f433a7ba7b1f4083c27aac1b41642f82f352 (diff) |
Fix: features/ci/runners_spec.rb
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/ci/runner_projects_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/ci/runner_projects_controller.rb b/app/controllers/ci/runner_projects_controller.rb index 5365f51082f..a8bdd5bb362 100644 --- a/app/controllers/ci/runner_projects_controller.rb +++ b/app/controllers/ci/runner_projects_controller.rb @@ -9,7 +9,7 @@ module Ci def create @runner = Ci::Runner.find(params[:runner_project][:runner_id]) - return head(403) unless current_user.authorized_runners.include?(@runner) + return head(403) unless current_user.ci_authorized_runners.include?(@runner) if @runner.assign_to(project, current_user) redirect_to ci_project_runners_path(project) |