Merge pull request #2555 from EnesSacid-Buker/master
Logout link is wrong for portal
This commit is contained in:
commit
c683aec075
@ -33,7 +33,9 @@ class ShowInProfile
|
|||||||
$menu->route('users.index', $title, [], 20, ['icon' => 'people']);
|
$menu->route('users.index', $title, [], 20, ['icon' => 'people']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$is_portal = user()->isCustomer() ? 'portal.' : '';
|
||||||
|
|
||||||
$title = trim(trans('auth.logout'));
|
$title = trim(trans('auth.logout'));
|
||||||
$menu->route('logout', $title, [], 90, ['icon' => 'power_settings_new', 'class' => 'mt-5']);
|
$menu->route($is_portal . 'logout', $title, [], 90, ['icon' => 'power_settings_new', 'class' => 'mt-5']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user