mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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.
This commit is contained in:
@@ -34,7 +34,8 @@ export const DeploymentDropdown: FC<DeploymentDropdownProps> = ({
|
||||
!canViewConnectionLog &&
|
||||
!canViewOrganizations &&
|
||||
!canViewDeployment &&
|
||||
!canViewHealth
|
||||
!canViewHealth &&
|
||||
!canViewAIBridge
|
||||
) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user