MCPcopy Create free account
hub / github.com/bytebase/bytebase / isWorksheetCreator

Function isWorksheetCreator

frontend/src/views/sql-editor/Sheet/context.ts:780–784  ·  view source on GitHub ↗
(worksheet: { creator: string })

Source from the content-addressed store, hash-verified

778// ---- side effects (initialized lazily on first use) ------------------------
779
780const isWorksheetCreator = (worksheet: { creator: string }) => {
781 const email = useAppStore.getState().currentUser?.email;
782 if (!email) return false;
783 return worksheet.creator === `users/${email}`;
784};
785
786const batchUpdateWorksheetFolders = async (
787 worksheets: { name: string; folders: string[] }[]

Callers 3

TreeNodeSuffixFunction · 0.85
PrefixFunction · 0.85
onCurrentTabChangedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected