Fixes...
This commit is contained in:
parent
050739e7fd
commit
7fd9ce903f
2 changed files with 5 additions and 1 deletions
|
|
@ -73,6 +73,10 @@ class SendNotificationEmail extends Job implements ShouldQueue
|
|||
*/
|
||||
public function handle(UserMailer $userMailer)
|
||||
{
|
||||
if (config('queue.default') !== 'sync') {
|
||||
$this->user->account->loadLocalizationSettings();
|
||||
}
|
||||
|
||||
$userMailer->sendNotification($this->user, $this->invoice, $this->type, $this->payment, $this->notes);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,6 +42,6 @@ class DocumentPolicy extends EntityPolicy
|
|||
return $user->can('view', $document->invoice);
|
||||
}
|
||||
|
||||
return $user->owns($item);
|
||||
return $user->owns($document);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue