feat: restrict apps management to board modifiers (#6425)

This commit is contained in:
Thomas authored and GitHub committed 2026-07-21 16:56:33 +02:00
1 parent 8e7fa782b3
commit cf0e469465
10 files changed
+48 -9

No files matched your search

@@ -87,7 +87,8 @@ export const globalCommandGroup = createGroup<Command>({
icon: IconBox,
name: tOption("newApp.label"),
useInteraction: interaction.link(() => ({ href: "/manage/apps/new" })),
hidden: !session?.user.permissions.includes("app-create"),
hidden:
!session?.user.permissions.includes("board-modify-all") || !session?.user.permissions.includes("app-create"),
},
{
commandKey: "newIntegration",