diff --git a/frontend/libs/console/legacy-ce/src/lib/components/Services/Data/DataSources/ConnectDatabase.tsx b/frontend/libs/console/legacy-ce/src/lib/components/Services/Data/DataSources/ConnectDatabase.tsx index 72537a250fc..74101996af2 100644 --- a/frontend/libs/console/legacy-ce/src/lib/components/Services/Data/DataSources/ConnectDatabase.tsx +++ b/frontend/libs/console/legacy-ce/src/lib/components/Services/Data/DataSources/ConnectDatabase.tsx @@ -402,7 +402,7 @@ const ConnectDatabase: React.FC = props => { {getSupportedDrivers('connectDbForm.read_replicas.edit').includes( connectDBInputState.dbType ) && - canAccessReadReplica() && ( + canAccessReadReplica(connectDBInputState.dbType) && ( = props => { {getSupportedDrivers('connectDbForm.read_replicas.create').includes( connectDBInputState.dbType ) && - canAccessReadReplica() && ( + canAccessReadReplica(connectDBInputState.dbType) && ( isProConsole(window.__env); +export const canAccessReadReplica = (dbType: Driver) => { + return isProConsole(window.__env) && dbType !== 'bigquery'; +}; export const canAccessSecuritySettings = () => isProConsole(window.__env);