diff options
author | Felipe Artur <felipefac@gmail.com> | 2019-04-12 10:05:04 -0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2019-04-12 10:05:04 -0300 |
commit | d12a63cf566716a16465701d5a58408a801f4f6f (patch) | |
tree | 53cff9c9b22800b1c3d01b3fc11163855dc1f9fd /lib/api/import_github.rb | |
parent | 6643f9ad39079e7220b414a72e01974edea16e37 (diff) | |
parent | 6e3e2cb036e9f3cbf9589152e8329e42d86c8298 (diff) | |
download | gitlab-ce-ce-issue_6538.tar.gz |
Merge branch 'master' into ce-issue_6538ce-issue_6538
Diffstat (limited to 'lib/api/import_github.rb')
-rw-r--r-- | lib/api/import_github.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/import_github.rb b/lib/api/import_github.rb index bb4e536cf57..e7504051808 100644 --- a/lib/api/import_github.rb +++ b/lib/api/import_github.rb @@ -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 |