Merge pull request #1196 from rahadi23/bugfix/1165-navigation-items-permissions

fix(ui): add condition to show update server button to admin only
This commit is contained in:
Mauricio Siu
2025-01-26 14:30:39 -06:00
committed by GitHub

View File

@@ -783,7 +783,7 @@ export default function Page({ children }: Props) {
</SidebarMenuButton> </SidebarMenuButton>
</SidebarMenuItem> </SidebarMenuItem>
))} ))}
{!isCloud && ( {!isCloud && auth?.rol === "admin" && (
<SidebarMenuItem> <SidebarMenuItem>
<SidebarMenuButton asChild> <SidebarMenuButton asChild>
<UpdateServerButton /> <UpdateServerButton />