mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 21:24:35 -04:00
fixes for the ninja portal
This commit is contained in:
parent
7376702748
commit
489e02649e
@ -52,12 +52,15 @@ class NinjaPlanController extends Controller
|
|||||||
|
|
||||||
Auth::guard('contact')->login($client_contact,true);
|
Auth::guard('contact')->login($client_contact,true);
|
||||||
|
|
||||||
/* Current paid users get pushed straight to subscription overview page*/
|
// /* Current paid users get pushed straight to subscription overview page*/
|
||||||
if($account->isPaidHostedClient())
|
// if($account->isPaidHostedClient())
|
||||||
return redirect('/client/dashboard');
|
// return redirect('/client/dashboard');
|
||||||
|
|
||||||
/* Users that are not paid get pushed to a custom purchase page */
|
// /* Users that are not paid get pushed to a custom purchase page */
|
||||||
return $this->render('subscriptions.ninja_plan', ['settings' => $client_contact->company->settings]);
|
// return $this->render('subscriptions.ninja_plan', ['settings' => $client_contact->company->settings]);
|
||||||
|
|
||||||
|
return $this->plan();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return redirect()->route('client.catchall');
|
return redirect()->route('client.catchall');
|
||||||
@ -137,8 +140,7 @@ class NinjaPlanController extends Controller
|
|||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return redirect()->route('client.catchall');
|
return redirect('/client/dashboard');
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -113,7 +113,6 @@ class PortalComposer
|
|||||||
|
|
||||||
$data[] = ['title' => ctrans('texts.payment_methods'), 'url' => 'client.payment_methods.index', 'icon' => 'shield'];
|
$data[] = ['title' => ctrans('texts.payment_methods'), 'url' => 'client.payment_methods.index', 'icon' => 'shield'];
|
||||||
$data[] = ['title' => ctrans('texts.documents'), 'url' => 'client.documents.index', 'icon' => 'download'];
|
$data[] = ['title' => ctrans('texts.documents'), 'url' => 'client.documents.index', 'icon' => 'download'];
|
||||||
$data[] = ['title' => ctrans('texts.subscriptions'), 'url' => 'client.subscriptions.index', 'icon' => 'calendar'];
|
|
||||||
|
|
||||||
if (auth('contact')->user()->client->getSetting('enable_client_portal_tasks')) {
|
if (auth('contact')->user()->client->getSetting('enable_client_portal_tasks')) {
|
||||||
$data[] = ['title' => ctrans('texts.tasks'), 'url' => 'client.tasks.index', 'icon' => 'clock'];
|
$data[] = ['title' => ctrans('texts.tasks'), 'url' => 'client.tasks.index', 'icon' => 'clock'];
|
||||||
@ -123,6 +122,8 @@ class PortalComposer
|
|||||||
|
|
||||||
if(Ninja::isHosted() && auth('contact')->user()->company->id == config('ninja.ninja_default_company_id'))
|
if(Ninja::isHosted() && auth('contact')->user()->company->id == config('ninja.ninja_default_company_id'))
|
||||||
$data[] = ['title' => ctrans('texts.plan'), 'url' => 'client.plan', 'icon' => 'credit-card'];
|
$data[] = ['title' => ctrans('texts.plan'), 'url' => 'client.plan', 'icon' => 'credit-card'];
|
||||||
|
else
|
||||||
|
$data[] = ['title' => ctrans('texts.subscriptions'), 'url' => 'client.subscriptions.index', 'icon' => 'calendar'];
|
||||||
|
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user