aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/JSON.pm
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2019-04-12 17:32:06 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-04-23 17:34:00 +0100
commit022a7f3366b149a97124f5c8c57f6682b5fcc7f6 (patch)
treedae76e282c4c099cca9b99f52eeeb2a04a29c9eb /perllib/FixMyStreet/App/Controller/JSON.pm
parent49e1578a3c2be13079e8a05ec18074b84401919e (diff)
[Open311] Ensures non_public/hidden reports aren’t visible at /open311
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/JSON.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/JSON.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/JSON.pm b/perllib/FixMyStreet/App/Controller/JSON.pm
index e1e135054..ccc5b31dc 100644
--- a/perllib/FixMyStreet/App/Controller/JSON.pm
+++ b/perllib/FixMyStreet/App/Controller/JSON.pm
@@ -87,6 +87,7 @@ sub problems : Local {
my $query = {
$date_col => $range->sql,
state => [ @state ],
+ non_public => 0,
};
$query->{category} = $category if $category;
my @problems = $c->cobrand->problems->search( $query, {