Commit 6b546551 authored by Ben's avatar Ben

Add missing provider_unauthroized method to import_github.rb

parent af9b46f3
......@@ -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.", 500)
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