After Update: Whoops, looks like something went wrong on 'Account Management' #1580
This commit is contained in:
parent
7e9add625b
commit
df46330d5f
1 changed files with 1 additions and 1 deletions
|
|
@ -376,7 +376,7 @@ class AccountController extends BaseController
|
|||
$planDetails = $account->getPlanDetails(true);
|
||||
$portalLink = false;
|
||||
|
||||
if ($planDetails && $ninjaClient = $this->accountRepo->getNinjaClient($account)) {
|
||||
if (Utils::isNinja() && $planDetails && $ninjaClient = $this->accountRepo->getNinjaClient($account)) {
|
||||
$contact = $ninjaClient->getPrimaryContact();
|
||||
$portalLink = $contact->link;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue