1
0
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:
Hillel Coren 2016-07-18 22:07:23 +03:00
parent ce6068f924
commit 7cb797fcc2
2 changed files with 0 additions and 12 deletions

View File

@ -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);
}

View File

@ -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
*/