mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 10:17:33 -04:00 
			
		
		
		
	Merge pull request #9501 from CarrnellTech/v5-develop
Redirect client to dashboard at login if enabled
This commit is contained in:
		
						commit
						43c9f73092
					
				| @ -165,7 +165,9 @@ class ContactLoginController extends Controller | |||||||
| 
 | 
 | ||||||
|     private function setRedirectPath() |     private function setRedirectPath() | ||||||
|     { |     { | ||||||
|         if (auth()->guard('contact')->user()->company->enabled_modules & PortalComposer::MODULE_INVOICES) { |         if (auth()->guard('contact')->user()->client->getSetting('enable_client_portal_dashboard') === true) { | ||||||
|  |             $this->redirectTo = '/client/dashboard';                                                                                               | ||||||
|  |         } elseif (auth()->guard('contact')->user()->company->enabled_modules & PortalComposer::MODULE_INVOICES) { | ||||||
|             $this->redirectTo = '/client/invoices'; |             $this->redirectTo = '/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) { | ||||||
|             $this->redirectTo = '/client/recurring_invoices'; |             $this->redirectTo = '/client/recurring_invoices'; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user