mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 14:12:44 +01:00
Fixes...
This commit is contained in:
parent
4d1b64c041
commit
46ea8a40ca
@ -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…
Reference in New Issue
Block a user