mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 22:14:36 -04:00
Filter account deletion emails
This commit is contained in:
parent
eaf6d53d8c
commit
653dbc5acc
@ -499,7 +499,7 @@ class CompanyController extends BaseController
|
|||||||
|
|
||||||
$account->delete();
|
$account->delete();
|
||||||
|
|
||||||
if(Ninja::isHosted())
|
if(Ninja::isHosted() && $request->has('cancellation_message') && strlen($request->input('cancellation_message')) > 1)
|
||||||
\Modules\Admin\Jobs\Account\NinjaDeletedAccount::dispatch($account_key, $request->all());
|
\Modules\Admin\Jobs\Account\NinjaDeletedAccount::dispatch($account_key, $request->all());
|
||||||
|
|
||||||
LightLogs::create(new AccountDeleted())
|
LightLogs::create(new AccountDeleted())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user