Skip to content

Commit

Permalink
Fixes a regression with the authenticated user being populated in the…
Browse files Browse the repository at this point in the history
… sender list.
  • Loading branch information
dniccum committed Mar 15, 2020
1 parent 83720ac commit a39149e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Http/Controllers/CustomEmailSenderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,16 @@ private function getAuthUserSender()
$user = request()->user();

if ($user) {
if (config('novamailsender')) {
if (config('novaemailsender')) {
$email = 'email';
$name = 'first_name';

if (config('novamailsender.model.email')) {
$email = config('novamailsender.model.email');
if (config('novaemailsender.model.email')) {
$email = config('novaemailsender.model.email');
}
if (config('novamailsender.model.name')) {
if (config('novaemailsender.model.name')) {
$name = 'name';
} elseif (config('novamailsender.model.first_name')) {
} elseif (config('novaemailsender.model.first_name')) {
$name = 'first_name';
}

Expand Down

0 comments on commit a39149e

Please sign in to comment.