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(edit-history): add refresh permission function (#5805)

VicKuna4da922a9118
diff --git a/packages/sheets/src/controllers/permission/sheet-permission-init.controller.ts b/packages/sheets/src/controllers/permission/sheet-permission-init.controller.ts
index a730e55125..c41f2d8d84 100644
--- a/packages/sheets/src/controllers/permission/sheet-permission-init.controller.ts
+++ b/packages/sheets/src/controllers/permission/sheet-permission-init.controller.ts
@@ -59,6 +59,10 @@ export class SheetPermissionInitController extends Disposable {
this._refreshPermissionByCollaCreate();
}
+ public refreshRangeProtectPermission() {
+ this._initRangePermissionFromSnapshot();
+ }
+
private async _initRangePermissionFromSnapshot() {
const initRangePermissionFunc = async (workbook: Workbook) => {
const allAllowedParams: {