From 96d6fdc27cc3721ec76b6542a32ae236d5e78956 Mon Sep 17 00:00:00 2001 From: Douwe Maan Date: Fri, 29 May 2015 13:29:16 +0200 Subject: Add option to disallow users from registering any application to use GitLab as an OAuth provider --- app/helpers/application_settings_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/helpers/application_settings_helper.rb') diff --git a/app/helpers/application_settings_helper.rb b/app/helpers/application_settings_helper.rb index 241d6075c9f..63c3ff5674d 100644 --- a/app/helpers/application_settings_helper.rb +++ b/app/helpers/application_settings_helper.rb @@ -19,6 +19,10 @@ module ApplicationSettingsHelper current_application_settings.sign_in_text end + def user_oauth_applications? + current_application_settings.user_oauth_applications + end + # Return a group of checkboxes that use Bootstrap's button plugin for a # toggle button effect. def restricted_level_checkboxes(help_block_id) -- cgit v1.2.1