fix(ui): add condition to show update server button to admin only

This commit is contained in:
Rahadi Jalu
2025-01-24 15:05:02 +07:00
parent adaf12a9a4
commit 52ea9ffa67

View File

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