feat: Enable Usage dashboard for Personal Workspaces

Remove isPersonalOrg restriction from usage page visibility check,
allowing users in Personal Workspaces to access the Usage dashboard
as long as they have view_billing permission (owner/admin).

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
openhands
2026-03-20 17:17:31 +00:00
parent 93fe1613d7
commit b13ba0cf2a

View File

@@ -56,8 +56,8 @@ export function useSettingsNavItems(): SettingsNavItem[] {
items = items.filter((item) => item.to !== "/settings/org-members");
}
// Hide usage page for users without view_billing permission or personal orgs
if (!hasPermission("view_billing") || !organizationId || isPersonalOrg) {
// Hide usage page for users without view_billing permission
if (!hasPermission("view_billing") || !organizationId) {
items = items.filter((item) => item.to !== "/settings/usage");
}