aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/FiksGataMi.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-09-15 12:41:03 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-09-15 16:19:28 +0100
commit79bbef3a3e21436afbb1d6e70a04eb48c09994f5 (patch)
treee1faee25196f1c31d4e94dc71b3e61d5928eb0bb /perllib/FixMyStreet/Cobrand/FiksGataMi.pm
parentcc8e32bde96955e62d73220240c57fafdd2cad1e (diff)
If running a dev site, skip some restrictions.
This makes it easier to perform manual testing of cobrands.
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/FiksGataMi.pm')
-rw-r--r--perllib/FixMyStreet/Cobrand/FiksGataMi.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/FiksGataMi.pm b/perllib/FixMyStreet/Cobrand/FiksGataMi.pm
index ba26b7a2c..242735073 100644
--- a/perllib/FixMyStreet/Cobrand/FiksGataMi.pm
+++ b/perllib/FixMyStreet/Cobrand/FiksGataMi.pm
@@ -29,6 +29,8 @@ sub disambiguate_location {
}
sub area_types {
+ my $self = shift;
+ return $self->next::method() if FixMyStreet->config('STAGING_SITE') && FixMyStreet->config('SKIP_CHECKS_ON_STAGING');
[ 'NKO', 'NFY', 'NRA' ];
}