readonly sessions on mongo (+checks on BE)

This commit is contained in:
Jan Prochazka
2022-03-17 13:17:30 +01:00
parent 7d196c7c62
commit 8f1d76fd2a
8 changed files with 51 additions and 13 deletions

View File

@@ -140,7 +140,7 @@
}
export function hasConnection() {
return !!conid;
return !!conid && (!$connection.isReadOnly || driver.readOnlySessions);
}
async function executeCore(sql) {