aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/Default.pm
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2017-11-22 10:43:25 +0000
committerDave Arter <davea@mysociety.org>2017-11-22 15:05:57 +0000
commit1986cacd1518b876d11df31cde60b896d91a80cb (patch)
tree205e4e01a5b95a3ce9ef63d6213783ecb603cff1 /perllib/FixMyStreet/Cobrand/Default.pm
parente850d759a32c6276698507c608c2f83c718dc039 (diff)
Allow cobrands to disable moderation emails
This adds a new send_moderation_notifications method which can be overridden by cobrands to prevent “your report has been moderated” emails from being sent. Fixes mysociety/fixmystreet-commercial#936
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/Default.pm')
-rw-r--r--perllib/FixMyStreet/Cobrand/Default.pm15
1 files changed, 15 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Default.pm b/perllib/FixMyStreet/Cobrand/Default.pm
index 68d11f227..82455f262 100644
--- a/perllib/FixMyStreet/Cobrand/Default.pm
+++ b/perllib/FixMyStreet/Cobrand/Default.pm
@@ -1250,4 +1250,19 @@ sub social_auth_enabled {
return $key_present && !$self->call_hook("social_auth_disabled");
}
+
+=head2 send_moderation_notifications
+
+Used to control whether an email is sent to the problem reporter when a report
+is moderated.
+
+Note that this is called in the context of the cobrand used to perform the
+moderation, so e.g. if a UK council cobrand disables the moderation
+notifications and a report is moderated on fixmystreet.com, the email will
+still be sent (because it wasn't disabled on the FixMyStreet cobrand).
+
+=cut
+
+sub send_moderation_notifications { 1 }
+
1;