Also check if Akismet is enabled, before showing the `Submit as spam` button.

This commit is contained in:
Patricio Cano 2016-08-22 21:36:04 -05:00
parent 148b8487b8
commit 7e6af85490
1 changed files with 1 additions and 1 deletions

View File

@ -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