aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2018-08-20 15:22:37 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-09-13 14:24:58 +0100
commit9e5595755c912dfa8ae020253668b29f48494e23 (patch)
tree3d5e950232df8418088fcf9a713b02e1b30e9fc2 /perllib
parent847ea6f773ddb5ba921ee1d9f1a0db4799687b1d (diff)
Add cobrand hook for disallowing updates.
Provides a template override for cobrands to show if updates aren't allowed on the problem.
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/Update.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/Update.pm b/perllib/FixMyStreet/App/Controller/Report/Update.pm
index 4a5b8db5d..5ad21ba48 100644
--- a/perllib/FixMyStreet/App/Controller/Report/Update.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/Update.pm
@@ -241,6 +241,7 @@ This makes sure we only proceed to processing if we've had the form submitted
sub check_form_submitted : Private {
my ( $self, $c ) = @_;
return if $c->stash->{problem}->get_extra_metadata('closed_updates');
+ return if $c->cobrand->call_hook(updates_disallowed => $c->stash->{problem});
return $c->get_param('submit_update') || '';
}