We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f1fec5 commit b6bc0f4Copy full SHA for b6bc0f4
packages/compass-collection/src/components/collection-tab.tsx
@@ -118,10 +118,10 @@ function WithErrorBoundary({
118
function useCollectionTabs(props: CollectionMetadata) {
119
const pluginTabs = useCollectionSubTabs();
120
const connectionInfoRef = useConnectionInfoRef();
121
- const isGlobalWritesSupported = useConnectionSupports(
122
- connectionInfoRef.current.id,
123
- 'globalWrites'
124
- );
+ const isGlobalWritesSupported =
+ useConnectionSupports(connectionInfoRef.current.id, 'globalWrites') &&
+ !props.isReadonly &&
+ !['config', 'local', 'admin'].includes(props.namespace.split('.')[0]);
125
return pluginTabs
126
.filter((x) => {
127
if (x.name === 'GlobalWrites' && !isGlobalWritesSupported) {
0 commit comments