mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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';
|
$subject = 'Invoice Ninja - Canceled Account';
|
||||||
|
|
||||||
if (Auth::user()->isPaidPro()) {
|
|
||||||
$subject .= ' [PRO]';
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->userMailer->sendTo(CONTACT_EMAIL, $email, $name, $subject, 'contact', $data);
|
$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 $this->account->hasFeature($feature);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return bool
|
|
||||||
*/
|
|
||||||
public function isPaidPro()
|
|
||||||
{
|
|
||||||
return $this->isPro($accountDetails) && !$accountDetails['trial'];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user