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:
authorPatricio Cano <suprnova32@gmail.com>2016-08-23 05:36:04 +0300
committerPatricio Cano <suprnova32@gmail.com>2016-08-23 05:36:04 +0300
commit7e6af85490e289ffcc868390654748009ecc67fa (patch)
treef91d7376e752db7d09126c425c9526a3e554d4d7
parent148b8487b817a0c8854c6842109ce1abc5aa4306 (diff)
Also check if Akismet is enabled, before showing the `Submit as spam` button.
-rw-r--r--app/models/concerns/spammable.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/spammable.rb b/app/models/concerns/spammable.rb
index ce54fe5d3bf..1aa97debe42 100644
--- a/app/models/concerns/spammable.rb
+++ b/app/models/concerns/spammable.rb
@@ -23,7 +23,7 @@ module Spammable
def submittable_as_spam?
if user_agent_detail
- user_agent_detail.submittable?
+ user_agent_detail.submittable? && current_application_settings.akismet_enabled
else
false
end