Univer is an Isomorphic Full-Stack Framework for Creating and Editing Spreadsheets, Docs, and Slides Across Web and Server
7.04k
stars
616
forks
source link
[Bug] How to reset permissions after reinitializing with univerAPI.disposeUnit? #3388
Closed
mietl closed 1 month ago
Before you submit this issue, have you checked the following
Affected packages and versions
0.2.12
Reproduction link
https://stackblitz.com/edit/awesome-univer-sheets-vue3-demo-ludshv?file=src%2Fcomponents%2FUniverSheet.vue
Minimum reproduction, when initializing, do not set permissions Include permissions after reinitialization
Expected behavior
After reinitialization, permissions should be applied according to the new work book.
Actual behavior
permissionPoint does not exist!
He will receive an error. He is still using the previous permission. I don't know how to reset the permission.
Others have also encountered it https://github.com/dream-num/univer/issues/2046#issuecomment-2178431256
System information
System: OS: macOS 15.0 CPU: (8) arm64 Apple M2 Memory: 113.27 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.17.0 - /usr/local/bin/node npm: 10.8.2 - /usr/local/bin/npm pnpm: 9.9.0 - ~/Library/pnpm/pnpm bun: 1.1.25 - ~/.bun/bin/bun Browsers: Chrome: 128.0.6613.120 Safari: 18.0