diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-11-01 15:52:42 +0000 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2019-12-09 12:48:12 +0000 |
commit | 267daf9db1e479eb929d83655c2ce91c95ff8c07 (patch) | |
tree | 0872c1ae31ba62d1edfeb880c0ed963ce5826cc7 | |
parent | c9fbc19964f7dd31fee15c821a52a4030695af9a (diff) |
[TfL] Disable questionnaires.
-rw-r--r-- | perllib/FixMyStreet/Cobrand/FixMyStreet.pm | 8 | ||||
-rw-r--r-- | perllib/FixMyStreet/Cobrand/TfL.pm | 2 |
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 ) = @_; |