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.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix(permission): change rename condition should have rename permission (#2579)
ybzky39619c000d20
diff --git a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarTabs.tsx b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarTabs.tsxindex e20f9e4aff..8316e1a03a 100644--- a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarTabs.tsx+++ b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarTabs.tsx@@ -28,8 +28,8 @@ import {SetWorksheetNameMutation,SetWorksheetOrderCommand,SetWorksheetOrderMutation,- WorkbookEditablePermission,WorkbookManageCollaboratorPermission,+ WorkbookRenameSheetPermission,WorksheetProtectionRuleModel,} from '@univerjs/sheets';import { IConfirmService, Menu, useObservable } from '@univerjs/ui';@@ -192,7 +192,7 @@ export function SheetBarTabs() {if (worksheetRule || selectionRule) {return permissionService.getPermissionPoint(new WorkbookManageCollaboratorPermission(unitId).id)?.value ?? false;} else {- return permissionService.getPermissionPoint(new WorkbookEditablePermission(unitId).id)?.value ?? false;+ return permissionService.getPermissionPoint(new WorkbookRenameSheetPermission(unitId).id)?.value ?? false;}},});