diff options
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Northamptonshire.pm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Northamptonshire.pm b/perllib/FixMyStreet/Cobrand/Northamptonshire.pm index abea3bfd5..4ae3b6409 100644 --- a/perllib/FixMyStreet/Cobrand/Northamptonshire.pm +++ b/perllib/FixMyStreet/Cobrand/Northamptonshire.pm @@ -55,6 +55,17 @@ sub updates_disallowed { return $self->next::method(@_); } +sub is_defect { + my ($self, $p) = @_; + return $p->user_id == $self->body_obj->comment_user_id; +} + +sub pin_colour { + my ($self, $p, $context) = @_; + return 'blue' if $self->is_defect($p); + return $self->SUPER::pin_colour($p, $context); +} + sub problems_on_map_restriction { my ($self, $rs) = @_; # Northamptonshire don't want to show district/borough reports |