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

pull/3606/head
Daniel Supernault 2022-08-04 03:41:54 -06:00
rodzic 872f5f879b
commit b57066d15d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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 [];
}