diff --git a/perllib/FixMyStreet/Cobrand/WestNorthants.pm b/perllib/FixMyStreet/Cobrand/WestNorthants.pm index 05fa8203001..548651b510c 100644 --- a/perllib/FixMyStreet/Cobrand/WestNorthants.pm +++ b/perllib/FixMyStreet/Cobrand/WestNorthants.pm @@ -89,6 +89,19 @@ sub pin_colour { return $self->SUPER::pin_colour($p, $context); } +=item * We allow staff to bypass stoppers. + +=cut + +sub staff_ignore_form_disable_form { + my $self = shift; + + my $c = $self->{c}; + + return $c->user_exists + && $c->user->belongs_to_body( $self->body->id ); +} + around 'munge_sendreport_params' => sub { my ($orig, $self, $row, $h, $params) = @_; diff --git a/perllib/FixMyStreet/Roles/Cobrand/Northants.pm b/perllib/FixMyStreet/Roles/Cobrand/Northants.pm index 1dd8d10c264..06393cccb2d 100644 --- a/perllib/FixMyStreet/Roles/Cobrand/Northants.pm +++ b/perllib/FixMyStreet/Roles/Cobrand/Northants.pm @@ -128,20 +128,6 @@ sub report_validation { } } -=item * We allow staff to bypass stoppers. - -=cut - -sub staff_ignore_form_disable_form { - my $self = shift; - - my $c = $self->{c}; - - return $c->user_exists - && $c->user->belongs_to_body( $self->body->id ); -} - - =item * We always apply state changes from Open311 updates. =cut