diff --git a/scp/tickets.php b/scp/tickets.php index 4851b4169d257b259671e525d12b0917be428b46..05c0a0e4bfca846fe61131b33da641761d38ab30 100644 --- a/scp/tickets.php +++ b/scp/tickets.php @@ -53,7 +53,7 @@ if (!$ticket) { && $_GET['a'] !== 'open' ) { $criteria = [ - ['user__name', 'equal', $user->name], + ['user__emails__address', 'equal', $user->getDefaultEmailAddress()], ['user_id', 'equal', $user->id], ]; if ($S = $_GET['status'])