Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: sql editor read only checker (#4001)
boojack92ab81dab986
diff --git a/frontend/src/store/modules/sheet.ts b/frontend/src/store/modules/sheet.tsindex 42ce1de2e0..b362e5b82b 100644--- a/frontend/src/store/modules/sheet.ts+++ b/frontend/src/store/modules/sheet.ts@@ -125,16 +125,16 @@ export const useSheetStore = defineStore("sheet", {return true;}- // Incomplete sheets should be read-only. e.g. 100MB sheet from issue task.- if (currentSheet.statement.length !== currentSheet.size) {- return true;- }-// The tab is not saved yet, it is editable.if (currentSheet.id === UNKNOWN_ID) {return false;}+ // Incomplete sheets should be read-only. e.g. 100MB sheet from issue task.+ if (currentSheet.statement.length !== currentSheet.size) {+ return true;+ }+return !isSheetWritable(currentSheet, currentUser);},},