diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-06-20 18:50:21 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-06-20 18:50:21 +0100 |
commit | 094ce47ab94387949a27dbcbde6930754cb8ddc3 (patch) | |
tree | 5d088778cfeeb23d0d3b377454b5b4be0fade0ed /perllib/FixMyStreet/App/Controller/Report.pm | |
parent | 8e96ff0e64a0b5c96912fa25189d7288d5f1d5ca (diff) | |
parent | 1ac833b14eddb275ae124035dc95650e725265d3 (diff) |
Merge branch '360-change-email'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm index b3e546c2c..89df4a52d 100644 --- a/perllib/FixMyStreet/App/Controller/Report.pm +++ b/perllib/FixMyStreet/App/Controller/Report.pm @@ -72,6 +72,7 @@ sub ajax : Path('ajax') : Args(1) { sub _display : Private { my ( $self, $c, $id ) = @_; + $c->forward('/auth/get_csrf_token'); $c->forward( 'load_problem_or_display_error', [ $id ] ); $c->forward( 'load_updates' ); $c->forward( 'format_problem_for_display' ); @@ -249,6 +250,8 @@ users too about this change, at which point we can delete: sub delete :Local :Args(1) { my ( $self, $c, $id ) = @_; + $c->forward('/auth/check_csrf_token'); + $c->forward( 'load_problem_or_display_error', [ $id ] ); my $p = $c->stash->{problem}; |