Fix email verification requests filtering to gracefully handle deleted accounts and accounts already verified

pull/3606/head
Daniel Supernault 3 years ago
parent 872f5f879b
commit b57066d15d
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -560,10 +560,10 @@ trait AdminReportController
})
->map(function($id) {
$user = User::whereProfileId($id)->first();
if(!$user) {
if(!$user || $user->email_verified_at) {
return [];
}
$account = AccountService::get($id);
$account = AccountService::get($id, true);
if(!$account) {
return [];
}

Loading…
Cancel
Save