aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-09-19 11:37:39 +0100
committerMatthew Somerville <matthew@mysociety.org>2019-10-04 11:26:25 +0100
commitd19fef1920c64d1d2871d30dbc573fafa9e430e1 (patch)
treea3e9d45f16c5ddbfc1fe519057ec71dddf8d0171 /perllib/FixMyStreet
parente4d3a706de4600df182d18917165abf83971800f (diff)
[Northants] Blue pins and no ID for body reports.
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r--perllib/FixMyStreet/Cobrand/Northamptonshire.pm11
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