diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-06-14 13:19:09 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-06-14 16:39:36 +0100 |
commit | 46fd6e9bfe5d00230aec44188e66c60e89c416e5 (patch) | |
tree | ef042924605697ab7ed48013e57bb228d41a09f8 /perllib/FixMyStreet | |
parent | 2a6ef907881ff0840f17170c59c973c7943c7943 (diff) |
[Bromley] Include TfL reports on map, in grey.
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Bromley.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Bromley.pm b/perllib/FixMyStreet/Cobrand/Bromley.pm index 5d14d0b01..36a3e3d5f 100644 --- a/perllib/FixMyStreet/Cobrand/Bromley.pm +++ b/perllib/FixMyStreet/Cobrand/Bromley.pm @@ -16,6 +16,13 @@ sub base_url { return 'https://fix.bromley.gov.uk'; } +sub problems_on_map_restriction { + my ($self, $rs) = @_; + return $rs if FixMyStreet->staging_flag('skip_checks'); + my $tfl = FixMyStreet::DB->resultset('Body')->search({ name => 'TfL' })->first; + return $rs->to_body($tfl ? [ $self->body->id, $tfl->id ] : $self->body); +} + sub default_show_name { 0 } sub disambiguate_location { @@ -64,6 +71,7 @@ sub map_type { # Bromley pins always yellow sub pin_colour { my ( $self, $p, $context ) = @_; + return 'grey' if !$self->owns_problem( $p ); return 'yellow'; } |