diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-12-20 13:41:30 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-12-20 13:41:30 +0000 |
commit | af8c0ffd8aaaa19d84beaf2b1f8a5258574656e0 (patch) | |
tree | 66ac684d7d9ab89582d9318cd2090092973e8e20 /perllib/FixMyStreet/App/Controller/Report/New.pm | |
parent | afc6697a91c5302efd92a5ee5c21a2d732e29fff (diff) |
Zurich always has email confirmation, and that just sets a flag (as report is already 'public').
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/New.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/New.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm index 496dbe9ac..3a6986134 100644 --- a/perllib/FixMyStreet/App/Controller/Report/New.pm +++ b/perllib/FixMyStreet/App/Controller/Report/New.pm @@ -995,8 +995,10 @@ sub save_user_and_report : Private { $c->log->info($report->user->id . ' created for this report'); } elsif ( $c->user && $report->user->id == $c->user->id ) { + # Logged in and matches, so instantly confirm (except Zurich, with no confirmation) $report->user->update(); - $report->confirm; + $report->confirm + unless $c->cobrand->moniker eq 'zurich'; $c->log->info($report->user->id . ' is logged in for this report'); } else { |