1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 18:30:53 +00:00

Optimize sdoc created (#6031)

* optimize code

* optimize code
This commit is contained in:
杨顺强
2024-04-22 17:39:13 +08:00
committed by GitHub
parent 453899b846
commit 50be4b437c
7 changed files with 12 additions and 6 deletions

View File

@@ -612,7 +612,7 @@ export const Utils = {
}
if ((permission == 'rw' || permission == 'cloud-edit') && enableSeadoc) {
if ((permission == 'rw' || permission == 'cloud-edit') && enableSeadoc && !currentRepoInfo.encrypted) {
if (dirent.name.endsWith('.md') || dirent.name.endsWith('.docx')) {
list.push(CONVERT_TO_SDOC);
}