diff --git a/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx b/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx
index a24c38ce5..2c398c418 100644
--- a/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx
+++ b/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx
@@ -196,18 +196,22 @@ export function createContextCommandBarButtons(
}
export function createControlCommandBarButtons(container: Explorer): CommandButtonComponentProps[] {
- const buttons: CommandButtonComponentProps[] = [
- {
- iconSrc: SettingsIcon,
- iconAlt: "Settings",
- onCommandClick: () => useSidePanel.getState().openSidePanel("Settings", ),
- commandButtonLabel: undefined,
- ariaLabel: "Settings",
- tooltipText: "Settings",
- hasPopup: true,
- disabled: false,
- },
- ];
+ const buttons: CommandButtonComponentProps[] =
+ configContext.platform === Platform.Fabric && userContext.fabricContext?.isReadOnly
+ ? []
+ : [
+ {
+ iconSrc: SettingsIcon,
+ iconAlt: "Settings",
+ onCommandClick: () =>
+ useSidePanel.getState().openSidePanel("Settings", ),
+ commandButtonLabel: undefined,
+ ariaLabel: "Settings",
+ tooltipText: "Settings",
+ hasPopup: true,
+ disabled: false,
+ },
+ ];
const showOpenFullScreen =
configContext.platform === Platform.Portal && !isRunningOnNationalCloud() && userContext.apiType !== "Gremlin";
diff --git a/src/Explorer/Tabs/DocumentsTab.ts b/src/Explorer/Tabs/DocumentsTab.ts
index 04ec0046b..3591378da 100644
--- a/src/Explorer/Tabs/DocumentsTab.ts
+++ b/src/Explorer/Tabs/DocumentsTab.ts
@@ -1,4 +1,5 @@
import { ItemDefinition, PartitionKey, PartitionKeyDefinition, QueryIterator, Resource } from "@azure/cosmos";
+import { Platform, configContext } from "ConfigContext";
import { querySampleDocuments, readSampleDocument } from "Explorer/QueryCopilot/QueryCopilotUtilities";
import { QueryConstants } from "Shared/Constants";
import { LocalStorageUtility, StorageKey } from "Shared/StorageUtility";
@@ -881,7 +882,7 @@ export default class DocumentsTab extends TabsBase {
}
protected getTabsButtons(): CommandButtonComponentProps[] {
- if (userContext.fabricContext?.isReadOnly) {
+ if (configContext.platform === Platform.Fabric && userContext.fabricContext?.isReadOnly) {
// All the following buttons require write access
return [];
}