refactor(users): remove member unlinking logic from ShowUsers component and update billing access check for owner role only

This commit is contained in:
Mauricio Siu
2025-12-07 02:38:34 -06:00
parent 568293ef3c
commit 075e387bb6
3 changed files with 2 additions and 6 deletions

View File

@@ -235,9 +235,6 @@ export const ShowUsers = () => {
return;
}
}
await removeMember({
memberId: member.id,
});
toast.success(
"User unlinked successfully",
);

View File

@@ -395,8 +395,7 @@ const MENU: Menu = {
url: "/dashboard/settings/billing",
icon: CreditCard,
// Only enabled for admins in cloud environments
isEnabled: ({ auth, isCloud }) =>
!!((auth?.role === "owner" || auth?.role === "admin") && isCloud),
isEnabled: ({ auth, isCloud }) => !!(auth?.role === "owner" && isCloud),
},
],