From aef0cbcb0250087f778ff2e017b277d9ee85fc9f Mon Sep 17 00:00:00 2001 From: Jake Howell Date: Thu, 27 Nov 2025 17:45:51 +1100 Subject: [PATCH] fix: ensure we check if the user can actually see `ai bridge` (#20942) There was a mild regression here where-in if the user only had `AI Bridge` they wouldn't be able to see this content in the dropdown menu. This was necessary for reasons earlier with it being an experiment however its now fine to check for this and won't upset anything. --- site/src/modules/dashboard/Navbar/DeploymentDropdown.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site/src/modules/dashboard/Navbar/DeploymentDropdown.tsx b/site/src/modules/dashboard/Navbar/DeploymentDropdown.tsx index fc7825b3dfc7f..c84aae50fa1aa 100644 --- a/site/src/modules/dashboard/Navbar/DeploymentDropdown.tsx +++ b/site/src/modules/dashboard/Navbar/DeploymentDropdown.tsx @@ -34,7 +34,8 @@ export const DeploymentDropdown: FC = ({ !canViewConnectionLog && !canViewOrganizations && !canViewDeployment && - !canViewHealth + !canViewHealth && + !canViewAIBridge ) { return null; }