Skip to content

Commit

Permalink
Check author_id when saving a new report
Browse files Browse the repository at this point in the history
  • Loading branch information
marcbradshaw committed Sep 19, 2018
1 parent 3db4574 commit c705bb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mail/DMARC/Report/Store/SQL.pm
Expand Up @@ -172,8 +172,8 @@ sub get_report_id {
# Reports submitted by our local MTA will not have a report ID
# They aggregate on the From domain, where the DMARC policy was discovered
$ids = $self->query(
'SELECT id FROM report WHERE from_domain_id=? AND end > ?',
[ $from_dom_id, time ]
'SELECT id FROM report WHERE from_domain_id=? AND end > ? AND author_id=?',
[ $from_dom_id, time, $author_id ]
);
};

Expand Down

0 comments on commit c705bb1

Please sign in to comment.