Skip to content

Commit 6254644

Browse files
authored
Merge pull request #1196 from rahadi23/bugfix/1165-navigation-items-permissions
fix(ui): add condition to show update server button to admin only
2 parents bcb86f3 + 52ea9ff commit 6254644

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/dokploy/components/layouts/side.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ export default function Page({ children }: Props) {
783783
</SidebarMenuButton>
784784
</SidebarMenuItem>
785785
))}
786-
{!isCloud && (
786+
{!isCloud && auth?.rol === "admin" && (
787787
<SidebarMenuItem>
788788
<SidebarMenuButton asChild>
789789
<UpdateServerButton />

0 commit comments

Comments
 (0)