diff options
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'; } |