Only show networking settings warning for Mongo and Cassandra accounts (#1376)
This commit is contained in:
parent
ab1409efb1
commit
5059917edf
|
@ -11,6 +11,7 @@ const PortalIPs: { [key: string]: string[] } = {
|
|||
};
|
||||
|
||||
export const doNetworkSettingsAllowDataExplorerAccess = (): boolean => {
|
||||
if (userContext.apiType === "Cassandra" || userContext.apiType === "Mongo") {
|
||||
const accountProperties = userContext.databaseAccount?.properties;
|
||||
|
||||
if (!accountProperties) {
|
||||
|
@ -37,4 +38,7 @@ export const doNetworkSettingsAllowDataExplorerAccess = (): boolean => {
|
|||
});
|
||||
|
||||
return numberOfMatches === portalIPs.length;
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue