aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/Westminster.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/Westminster.pm')
-rw-r--r--perllib/FixMyStreet/Cobrand/Westminster.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Westminster.pm b/perllib/FixMyStreet/Cobrand/Westminster.pm
index 3d99e59c4..dc8765bae 100644
--- a/perllib/FixMyStreet/Cobrand/Westminster.pm
+++ b/perllib/FixMyStreet/Cobrand/Westminster.pm
@@ -145,4 +145,12 @@ sub _fetch_features_url {
return $cfg->{proxy_url} . "?" . $uri->as_string;
}
+sub categories_restriction {
+ my ($self, $rs) = @_;
+ # Westminster don't want TfL categories on their cobrand
+ # XXX This still shows "These will be sent to TfL or Westminster City Council"
+ # on /report/new before a category is selected...
+ return $rs->search( { 'body.name' => 'Westminster City Council' }, { join => 'body' });
+}
+
1;