mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 05:37:20 +08:00
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:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user