aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r--perllib/FixMyStreet/Cobrand/Zurich.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Zurich.pm b/perllib/FixMyStreet/Cobrand/Zurich.pm
index e9fec8fda..be73ed9c1 100644
--- a/perllib/FixMyStreet/Cobrand/Zurich.pm
+++ b/perllib/FixMyStreet/Cobrand/Zurich.pm
@@ -468,6 +468,7 @@ sub admin {
my $self = shift;
my $c = $self->{c};
my $type = $c->stash->{admin_type};
+ my $internal = $c->get_param('internal');
if ($type eq 'dm') {
$c->stash->{template} = 'admin/index-dm.html';
@@ -482,12 +483,14 @@ sub admin {
$c->stash->{submitted} = $c->cobrand->problems->search({
state => [ 'submitted', 'confirmed' ],
bodies_str => $c->stash->{body}->id,
+ non_public => $internal ? 1 : 0,
}, {
order_by => $order,
});
$c->stash->{approval} = $c->cobrand->problems->search({
state => 'feedback pending',
bodies_str => $c->stash->{body}->id,
+ non_public => $internal ? 1 : 0,
}, {
order_by => $order,
});
@@ -496,6 +499,7 @@ sub admin {
$c->stash->{other} = $c->cobrand->problems->search({
state => { -not_in => [ 'submitted', 'confirmed', 'feedback pending' ] },
bodies_str => \@all,
+ non_public => $internal ? 1 : 0,
}, {
order_by => $order,
})->page( $page );
@@ -511,12 +515,14 @@ sub admin {
$c->stash->{reports_new} = $c->cobrand->problems->search( {
state => 'in progress',
bodies_str => $body->id,
+ non_public => $internal ? 1 : 0,
}, {
order_by => $order
} );
$c->stash->{reports_unpublished} = $c->cobrand->problems->search( {
state => 'feedback pending',
bodies_str => $body->parent->id,
+ non_public => $internal ? 1 : 0,
}, {
order_by => $order
} );
@@ -525,6 +531,7 @@ sub admin {
$c->stash->{reports_published} = $c->cobrand->problems->search( {
state => 'fixed - council',
bodies_str => $body->parent->id,
+ non_public => $internal ? 1 : 0,
}, {
order_by => $order
} )->page( $page );