When a journal wants publish a new issue the system has an option with this title:
“sendIssueNotification” when the system user checked on, it send a “NOTIFICATION_TYPE_PUBLISHED_ISSUE” to all user with this line
$allUsers = $userGroupDao->getUsersByContextId($journalId);
and in getUsersByContextId function, call the getUsersById function.
But this is false i think you make a mistake in here, why ojs could send a message to disabled user! i mean fake user loaded with this query and it is not correct.
Please check it
Thank you very much