Scope Frontdesk team members and add mailbox invite picker.
Deploy Ladill Frontdesk / deploy (push) Successful in 38s
Deploy Ladill Frontdesk / deploy (push) Successful in 38s
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -21,15 +21,25 @@ class UserProfileMenu
|
||||
return [];
|
||||
}
|
||||
|
||||
$showHub = StaffUx::showProductHub($user);
|
||||
$showBilling = StaffUx::showBilling($user);
|
||||
$items = [];
|
||||
|
||||
foreach ([
|
||||
['label' => 'Home', 'path' => '', 'host' => 'home'],
|
||||
['label' => 'Home', 'path' => '', 'host' => 'home', 'requires_hub' => true],
|
||||
['label' => 'Profile', 'path' => 'profile'],
|
||||
['label' => 'Account Settings', 'path' => 'account-settings'],
|
||||
['label' => 'Dashboard', 'path' => 'dashboard'],
|
||||
['label' => 'Billing', 'path' => 'billing'],
|
||||
['label' => 'Billing', 'path' => 'billing', 'requires_billing' => true],
|
||||
] as $link) {
|
||||
if (! empty($link['requires_hub']) && ! $showHub) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (! empty($link['requires_billing']) && ! $showBilling) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$href = self::platformUrl($link['host'] ?? 'account', $link['path']);
|
||||
|
||||
if (self::isCurrentMenuLink($link, $href)) {
|
||||
@@ -43,7 +53,7 @@ class UserProfileMenu
|
||||
];
|
||||
}
|
||||
|
||||
if (Route::has((string) config('billing.wallet_balance_route', 'wallet.balance'))) {
|
||||
if ($showBilling && Route::has((string) config('billing.wallet_balance_route', 'wallet.balance'))) {
|
||||
$items[] = ['type' => 'wallet'];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user