Merge pull request #2184 from burakcakirel/portal-landing-page
Fix portal dashboard redirection
This commit is contained in:
commit
6d9f0273a3
@ -100,7 +100,7 @@ trait Users
|
||||
return route('login');
|
||||
}
|
||||
|
||||
$route_name = $user->contact ? 'portal.dashboard' : $user->landing_page;
|
||||
$route_name = $user->can('read-client-portal') ? 'portal.dashboard' : $user->landing_page;
|
||||
|
||||
$company_id = company_id() ?: optional($this->getFirstCompanyOfUser())->id;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user