mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-23 12:27:48 +00:00
Multi office suite (#7127)
* initiate * update * test * Update file.py * update * update * update * optimize fronted * optimize * update * update * update * Update test_utils.py * update * remove-useless-code * Update repo_office_suite.py * optimize ui and sql * optimize * update * add is pro version for api * Update settings.py * update * Update models.py * add-repo-owner-validation --------- Co-authored-by: 孙永强 <11704063+s-yongqiang@user.noreply.gitee.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { mediaUrl, gettext, serviceURL, siteRoot, isPro, fileAuditEnabled, canGenerateShareLink, canGenerateUploadLink, shareLinkPasswordMinLength, username, folderPermEnabled, onlyofficeConverterExtensions, enableOnlyoffice, enableSeadoc, enableFileTags, enableRepoSnapshotLabel,
|
||||
import { mediaUrl, gettext, serviceURL, siteRoot, isPro, fileAuditEnabled, canGenerateShareLink, canGenerateUploadLink, shareLinkPasswordMinLength, username, folderPermEnabled, onlyofficeConverterExtensions, enableSeadoc, enableFileTags, enableRepoSnapshotLabel,
|
||||
enableResetEncryptedRepoPassword, isEmailConfigured, isSystemStaff } from './constants';
|
||||
import TextTranslation from './text-translation';
|
||||
import React from 'react';
|
||||
@@ -664,7 +664,7 @@ export const Utils = {
|
||||
list.push(HISTORY);
|
||||
}
|
||||
|
||||
if (permission == 'rw' && enableOnlyoffice &&
|
||||
if (permission == 'rw' && currentRepoInfo.enable_onlyoffice &&
|
||||
onlyofficeConverterExtensions.includes(Utils.getFileExtension(dirent.name, false))) {
|
||||
list.push(ONLYOFFICE_CONVERT);
|
||||
}
|
||||
|
Reference in New Issue
Block a user