mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 20:52:56 +01:00
Fix for cancel account
This commit is contained in:
parent
ce6068f924
commit
7cb797fcc2
@ -1368,10 +1368,6 @@ class AccountController extends BaseController
|
||||
|
||||
$subject = 'Invoice Ninja - Canceled Account';
|
||||
|
||||
if (Auth::user()->isPaidPro()) {
|
||||
$subject .= ' [PRO]';
|
||||
}
|
||||
|
||||
$this->userMailer->sendTo(CONTACT_EMAIL, $email, $name, $subject, 'contact', $data);
|
||||
}
|
||||
|
||||
|
@ -149,14 +149,6 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac
|
||||
return $this->account->hasFeature($feature);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isPaidPro()
|
||||
{
|
||||
return $this->isPro($accountDetails) && !$accountDetails['trial'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user