mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-02 19:04:33 -04:00
Revert unnecessary changes
This commit is contained in:
parent
ba0eec48a0
commit
49dc848841
@ -64,9 +64,7 @@ class ContactHashLoginController extends Controller
|
|||||||
|
|
||||||
private function setRedirectPath()
|
private function setRedirectPath()
|
||||||
{
|
{
|
||||||
if (auth()->guard('contact')->user()->client->getSetting('enable_client_portal_dashboard') === true) {
|
if (auth()->guard('contact')->user()->company->enabled_modules & PortalComposer::MODULE_INVOICES) {
|
||||||
return '/client/dashboard';
|
|
||||||
} elseif (auth()->guard('contact')->user()->company->enabled_modules & PortalComposer::MODULE_INVOICES) {
|
|
||||||
return '/client/invoices';
|
return '/client/invoices';
|
||||||
} elseif (auth()->guard('contact')->user()->company->enabled_modules & PortalComposer::MODULE_RECURRING_INVOICES) {
|
} elseif (auth()->guard('contact')->user()->company->enabled_modules & PortalComposer::MODULE_RECURRING_INVOICES) {
|
||||||
return '/client/recurring_invoices';
|
return '/client/recurring_invoices';
|
||||||
|
@ -161,9 +161,7 @@ class ContactKeyLogin
|
|||||||
|
|
||||||
private function setRedirectPath()
|
private function setRedirectPath()
|
||||||
{
|
{
|
||||||
if (auth()->guard('contact')->user()->client->getSetting('enable_client_portal_dashboard') === true) {
|
if (auth()->guard('contact')->user()->company->enabled_modules & PortalComposer::MODULE_INVOICES) {
|
||||||
return '/client/dashboard';
|
|
||||||
} elseif (auth()->guard('contact')->user()->company->enabled_modules & PortalComposer::MODULE_INVOICES) {
|
|
||||||
return '/client/invoices';
|
return '/client/invoices';
|
||||||
} elseif (auth()->guard('contact')->user()->company->enabled_modules & PortalComposer::MODULE_RECURRING_INVOICES) {
|
} elseif (auth()->guard('contact')->user()->company->enabled_modules & PortalComposer::MODULE_RECURRING_INVOICES) {
|
||||||
return '/client/recurring_invoices';
|
return '/client/recurring_invoices';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user