Skip to content

Commit caf711d

Browse files
authored
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.
1 parent d22d34e commit caf711d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

site/src/modules/dashboard/Navbar/DeploymentDropdown.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ export const DeploymentDropdown: FC<DeploymentDropdownProps> = ({
3434
!canViewConnectionLog &&
3535
!canViewOrganizations &&
3636
!canViewDeployment &&
37-
!canViewHealth
37+
!canViewHealth &&
38+
!canViewAIBridge
3839
) {
3940
return null;
4041
}

0 commit comments

Comments
 (0)