diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-08-04 19:54:45 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-08-04 20:12:08 +0200 |
commit | 9803f7489d612340019b3653b0cc0618a30a73f3 (patch) | |
tree | b604f42241cfb2d6d692d63035aad7080f181a9e /app/controllers | |
parent | f7dbf6d1a4b5724445de4da658103ce976b02a29 (diff) | |
download | gitlab-ci-9803f7489d612340019b3653b0cc0618a30a73f3.tar.gz |
Refactor GitLab API usage to use either access_token or private_token
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index f228870..8ba0f92 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -79,7 +79,7 @@ class ProjectsController < ApplicationController def destroy project.destroy - Network.new.disable_ci(project.gitlab_id, current_user.access_token) + Network.new.disable_ci(project.gitlab_id, current_user.authenticate_options) EventService.new.remove_project(current_user, project) |