Merge pull request #2555 from EnesSacid-Buker/master

Logout link is wrong for portal
This commit is contained in:
Cüneyt Şentürk 2022-07-28 10:41:29 +03:00 committed by GitHub
commit c683aec075
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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']);
} }
} }