diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-12-20 15:07:49 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-12-20 15:07:49 +0000 |
commit | 731df78014a58cb1f9e7083a7c85c6e5c65a4713 (patch) | |
tree | 18acaf675428dacda716a2ed6e45fea82497aee8 /perllib/FixMyStreet/App/Controller/Admin.pm | |
parent | d3240bb31f87d81d24eae94db665dee51652f7c6 (diff) |
Start of Zurich SDM report updating, and admin ID checking.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Admin.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm index d40a4c61d..e9b4bb9a2 100644 --- a/perllib/FixMyStreet/App/Controller/Admin.pm +++ b/perllib/FixMyStreet/App/Controller/Admin.pm @@ -587,10 +587,6 @@ sub reports : Path('reports') { sub report_edit : Path('report_edit') : Args(1) { my ( $self, $c, $id ) = @_; - if ( $c->cobrand->moniker eq 'zurich' ) { - $c->cobrand->admin_bodies(); - } - my $site_restriction = $c->cobrand->site_restriction; my $problem = $c->cobrand->problems->search( @@ -604,6 +600,10 @@ sub report_edit : Path('report_edit') : Args(1) { $c->stash->{problem} = $problem; + if ( $c->cobrand->moniker eq 'zurich' ) { + $c->cobrand->admin_report_edit(); + } + $c->forward('get_token'); $c->forward('check_email_for_abuse', [ $problem->user->email ] ); |