diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-02-01 22:25:00 -0200 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-02-02 11:25:44 -0200 |
commit | 0ea5d764f2ad8d94adfca36b20ce92e67af81e36 (patch) | |
tree | 87de81a8c6ef8b87600299708165b372f96c389c /app/helpers/application_settings_helper.rb | |
parent | 07384aa00d8a8759cdb29ba51ae32a6032ba2571 (diff) | |
download | gitlab-ce-0ea5d764f2ad8d94adfca36b20ce92e67af81e36.tar.gz |
Hide the link for spam logs if the Askimet is disabled
Diffstat (limited to 'app/helpers/application_settings_helper.rb')
-rw-r--r-- | app/helpers/application_settings_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/application_settings_helper.rb b/app/helpers/application_settings_helper.rb index 7d6b58ee21a..23693629a4c 100644 --- a/app/helpers/application_settings_helper.rb +++ b/app/helpers/application_settings_helper.rb @@ -23,6 +23,10 @@ module ApplicationSettingsHelper current_application_settings.user_oauth_applications end + def askimet_enabled? + current_application_settings.akismet_enabled? + end + # Return a group of checkboxes that use Bootstrap's button plugin for a # toggle button effect. def restricted_level_checkboxes(help_block_id) |