mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 08:04:40 -04:00
Fix for tests
This commit is contained in:
parent
1e837c2368
commit
f4fcc81871
@ -36,7 +36,7 @@ class UserMailer extends Mailer
|
|||||||
|
|
||||||
public function sendNotification(User $user, Invoice $invoice, $notificationType, Payment $payment = null)
|
public function sendNotification(User $user, Invoice $invoice, $notificationType, Payment $payment = null)
|
||||||
{
|
{
|
||||||
if (!$user->email) {
|
if (! $user->email || $user->cannot('view', $invoice)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,6 +42,7 @@ class UserTableSeeder extends Seeder
|
|||||||
'primary_color' => $faker->hexcolor,
|
'primary_color' => $faker->hexcolor,
|
||||||
'timezone_id' => 1,
|
'timezone_id' => 1,
|
||||||
'company_id' => $company->id,
|
'company_id' => $company->id,
|
||||||
|
'is_admin' => 1,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$user = User::create([
|
$user = User::create([
|
||||||
|
Loading…
x
Reference in New Issue
Block a user