Skip to content

Commit

Permalink
[North Northants] Staff can’t bypass stoppers any more
Browse files Browse the repository at this point in the history
  • Loading branch information
davea committed Nov 1, 2024
1 parent 2943fac commit 5ba936d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
13 changes: 13 additions & 0 deletions perllib/FixMyStreet/Cobrand/WestNorthants.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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) = @_;

Expand Down
14 changes: 0 additions & 14 deletions perllib/FixMyStreet/Roles/Cobrand/Northants.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ba936d

Please sign in to comment.