Commit 7e6af854 authored by Patricio Cano's avatar Patricio Cano
Browse files

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

parent 9741ac57964e
......@@ -23,7 +23,7 @@ def attr_spammable(attr, options = {})
def submittable_as_spam?
if user_agent_detail
user_agent_detail.submittable?
user_agent_detail.submittable? && current_application_settings.akismet_enabled
else
false
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment