mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-16 17:25:58 +00:00
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…
x
Reference in New Issue
Block a user