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
commit 6254644fa6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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