Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: check isCreator correctly (#7545)

Liu Ji4ba7036fce9c
diff --git a/frontend/src/store/modules/v1/sheet.ts b/frontend/src/store/modules/v1/sheet.ts
index 08466464f0..93c89a3ef9 100644
--- a/frontend/src/store/modules/v1/sheet.ts
+++ b/frontend/src/store/modules/v1/sheet.ts
@@ -283,7 +283,7 @@ export const useSheetAndTabStore = defineStore("sheet_and_tab", () => {
const isCreator = computed(() => {
const sheet = currentSheet.value;
if (!sheet) return false;
- return getUserEmailFromIdentifier(sheet.name) === me.value.email;
+ return getUserEmailFromIdentifier(sheet.creator) === me.value.email;
});
const isReadOnly = computed(() => {