Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-04 09:06:46 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-04 09:06:46 +0300
commit15a2d004be2f79160752d77f701c0f08e7f96973 (patch)
tree88bcbd90f3ab751264232d1d1902a818c77a2409 /app/helpers/application_settings_helper.rb
parent80ff3642b4b5ef4db5b4b144d4a17c9cf60c4586 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/application_settings_helper.rb')
-rw-r--r--app/helpers/application_settings_helper.rb14
1 files changed, 9 insertions, 5 deletions
diff --git a/app/helpers/application_settings_helper.rb b/app/helpers/application_settings_helper.rb
index f90ad0c300c..02226cc1651 100644
--- a/app/helpers/application_settings_helper.rb
+++ b/app/helpers/application_settings_helper.rb
@@ -3,11 +3,11 @@
module ApplicationSettingsHelper
extend self
- delegate :allow_signup?,
- :gravatar_enabled?,
- :password_authentication_enabled_for_web?,
- :akismet_enabled?,
- to: :'Gitlab::CurrentSettings.current_application_settings'
+ delegate :allow_signup?,
+ :gravatar_enabled?,
+ :password_authentication_enabled_for_web?,
+ :akismet_enabled?,
+ to: :'Gitlab::CurrentSettings.current_application_settings'
def user_oauth_applications?
Gitlab::CurrentSettings.user_oauth_applications
@@ -315,6 +315,10 @@ module ApplicationSettingsHelper
Rails.env.test?
end
+ def integration_expanded?(substring)
+ @application_setting.errors.any? { |k| k.to_s.start_with?(substring) }
+ end
+
def instance_clusters_enabled?
can?(current_user, :read_cluster, Clusters::Instance.new)
end