aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-07-29 18:43:42 +0100
committerMatthew Somerville <matthew@mysociety.org>2020-07-29 19:56:47 +0100
commit5bef5a64577601c01f875264911a882b7794ebca (patch)
tree4620dd2baf6efb05302aaabbe2f426602510edfc
parent82e7b51deb93d83618e99d9e092951695f221906 (diff)
[fixmystreet.com] Show recaptcha on /around.
The hidden embedded new report form on /around needs to be included, otherwise report submission could fail.
-rw-r--r--perllib/FixMyStreet/Cobrand/UK.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/UK.pm b/perllib/FixMyStreet/Cobrand/UK.pm
index 322b257a7..772310545 100644
--- a/perllib/FixMyStreet/Cobrand/UK.pm
+++ b/perllib/FixMyStreet/Cobrand/UK.pm
@@ -427,8 +427,8 @@ sub requires_recaptcha {
return 0 if $c->user_exists;
return 0 if !FixMyStreet->config('RECAPTCHA');
+ return 0 unless $c->action =~ /^(alert|report|around)/;
return 0 if $c->user_country eq 'GB';
- return 0 unless $c->action =~ /^(alert|report)/;
return 1;
}