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

Function getCurrentUserV1

frontend/src/store/modules/migration-helpers.ts:12–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10// returned unknownUser() / no features.
11
12export const getCurrentUserV1 = (): User => {
13 return appStoreUtilBridge()?.currentUser() ?? unknownUser();
14};
15
16export const hasFeature = (feature: PlanFeature): boolean => {
17 return appStoreUtilBridge()?.hasFeature(feature) ?? false;

Callers 7

getDefaultPaginationFunction · 0.90
isWorksheetReadableV1Function · 0.90
isWorksheetWritableV1Function · 0.90
migrateLegacyCacheFunction · 0.90
migrateDraftsFromCacheFunction · 0.90
migrateTabViewStateFunction · 0.90
activeInterceptorFunction · 0.90

Calls 2

appStoreUtilBridgeFunction · 0.90
unknownUserFunction · 0.90

Tested by

no test coverage detected