Don't require omniauth to be enabled, to use github importer

This commit is contained in:
Marco Wessel 2015-01-26 21:25:13 +01:00
parent 7a84dcf222
commit 05b6bb4bf7

View file

@ -257,7 +257,7 @@ module ProjectsHelper
end
def github_import_enabled?
Gitlab.config.omniauth.enabled && enabled_oauth_providers.include?(:github)
enabled_oauth_providers.include?(:github)
end
end