Commit ff4cc944 authored by Stan Hu's avatar Stan Hu

Merge branch 'patch-31' into 'master'

Add missing provider_unauthorized method to import_github.rb

Closes #60347

See merge request gitlab-org/gitlab-ce!27218
parents fac27e4a e925ddde
......@@ -20,6 +20,10 @@ module API
def provider
:github
end
def provider_unauthorized
error!("Access denied to your #{Gitlab::ImportSources.title(provider.to_s)} account.", 401)
end
end
desc 'Import a GitHub project' do
......
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