aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-11-01 15:52:42 +0000
committerDave Arter <davea@mysociety.org>2019-12-09 12:48:12 +0000
commit267daf9db1e479eb929d83655c2ce91c95ff8c07 (patch)
tree0872c1ae31ba62d1edfeb880c0ed963ce5826cc7
parentc9fbc19964f7dd31fee15c821a52a4030695af9a (diff)
[TfL] Disable questionnaires.
-rw-r--r--perllib/FixMyStreet/Cobrand/FixMyStreet.pm8
-rw-r--r--perllib/FixMyStreet/Cobrand/TfL.pm2
2 files changed, 10 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
index bf7690990..5f5389e0d 100644
--- a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
+++ b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
@@ -316,4 +316,12 @@ sub must_have_2fa {
return 0;
}
+sub send_questionnaire {
+ my ($self, $problem) = @_;
+ my $cobrand = $problem->get_cobrand_logged;
+ return 0 if $cobrand->moniker eq 'tfl';
+ return 0 if $problem->to_body_named('TfL');
+ return 1;
+}
+
1;
diff --git a/perllib/FixMyStreet/Cobrand/TfL.pm b/perllib/FixMyStreet/Cobrand/TfL.pm
index af1df08f2..b20c2c938 100644
--- a/perllib/FixMyStreet/Cobrand/TfL.pm
+++ b/perllib/FixMyStreet/Cobrand/TfL.pm
@@ -16,6 +16,8 @@ sub council_url { return 'tfl'; }
sub area_types { [ 'LBO' ] }
sub is_council { 0 }
+sub send_questionnaires { 0 }
+
sub area_check {
my ( $self, $params, $context ) = @_;