mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-25 21:28:47 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -429,8 +429,7 @@ const MENU: Menu = {
|
||||
url: "/dashboard/settings/whitelabeling",
|
||||
icon: Palette,
|
||||
// Only enabled for owners in non-cloud environments (enterprise)
|
||||
isEnabled: ({ auth, isCloud }) =>
|
||||
!!(auth?.role === "owner" && !isCloud),
|
||||
isEnabled: ({ auth, isCloud }) => !!(auth?.role === "owner" && !isCloud),
|
||||
},
|
||||
],
|
||||
|
||||
@@ -460,7 +459,13 @@ function createMenuForAuthUser(opts: {
|
||||
supportUrl?: string | null;
|
||||
} | null;
|
||||
}): Menu {
|
||||
const filterEnabled = <T extends { isEnabled?: (o: { auth?: AuthQueryOutput; isCloud: boolean }) => boolean }>(items: readonly T[]): T[] =>
|
||||
const filterEnabled = <
|
||||
T extends {
|
||||
isEnabled?: (o: { auth?: AuthQueryOutput; isCloud: boolean }) => boolean;
|
||||
},
|
||||
>(
|
||||
items: readonly T[],
|
||||
): T[] =>
|
||||
items.filter((item) =>
|
||||
!item.isEnabled
|
||||
? true
|
||||
|
||||
Reference in New Issue
Block a user