mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-18 20:35:24 +02:00
refactor(users): remove member unlinking logic from ShowUsers component and update billing access check for owner role only
This commit is contained in:
@@ -235,9 +235,6 @@ export const ShowUsers = () => {
|
||||
return;
|
||||
}
|
||||
}
|
||||
await removeMember({
|
||||
memberId: member.id,
|
||||
});
|
||||
toast.success(
|
||||
"User unlinked successfully",
|
||||
);
|
||||
|
||||
@@ -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),
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user