mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-25 05:08:46 +00:00
refactor(users): remove member unlinking logic from ShowUsers component and update billing access check for owner role only
This commit is contained in:
@@ -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