Browse Source

fix: compare code need token

tags/v3.1.5
viletyy 5 years ago
parent
commit
fd3fab99ae
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/compare_controller.rb

+ 1
- 1
app/controllers/compare_controller.rb View File

@@ -48,6 +48,6 @@ class CompareController < ApplicationController
end

def gitea_compare(base, head)
Gitea::Repository::Commits::CompareService.call(@owner.login, @project.identifier, base, head)
Gitea::Repository::Commits::CompareService.call(@owner.login, @project.identifier, base, head, current_user.gitea_token)
end
end

Loading…
Cancel
Save