Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

fix: update permission init timing (#4770)

ybzky5099acfd3126
diff --git a/packages/sheets-ui/src/plugin.ts b/packages/sheets-ui/src/plugin.ts
index 77c12276d1..ae3c7eea6a 100644
--- a/packages/sheets-ui/src/plugin.ts
+++ b/packages/sheets-ui/src/plugin.ts
@@ -162,10 +162,6 @@ export class UniverSheetsUIPlugin extends Plugin {
[SheetPermissionCheckUIController],
[SheetPermissionRenderManagerController],
] as Dependency[], this._config.override));
-
- touchDependencies(this._injector, [
- [SheetPermissionInitUIController],
- ]);
}
override onReady(): void {
@@ -184,6 +180,7 @@ export class UniverSheetsUIPlugin extends Plugin {
[SheetsRenderService],
[ActiveWorksheetController],
[SheetPermissionCheckUIController],
+ [SheetPermissionInitUIController],
]);
}