mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 19:16:01 +00:00
readonly sessions on mongo (+checks on BE)
This commit is contained in:
@@ -173,6 +173,6 @@
|
||||
<ToolStripCommandButton command="dataGrid.deleteSelectedRows" hideDisabled />
|
||||
<ToolStripCommandButton command="dataGrid.switchToJson" hideDisabled />
|
||||
<ToolStripCommandButton command="dataGrid.switchToTable" hideDisabled />
|
||||
<ToolStripExportButton {quickExportHandlerRef} command='collectionDataGrid.export' />
|
||||
<ToolStripExportButton {quickExportHandlerRef} command="collectionDataGrid.export" />
|
||||
</svelte:fragment>
|
||||
</ToolStripContainer>
|
||||
|
||||
@@ -140,7 +140,7 @@
|
||||
}
|
||||
|
||||
export function hasConnection() {
|
||||
return !!conid;
|
||||
return !!conid && (!$connection.isReadOnly || driver.readOnlySessions);
|
||||
}
|
||||
|
||||
async function executeCore(sql) {
|
||||
|
||||
Reference in New Issue
Block a user