1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 21:30:39 +00:00

[share] offered 'internal link' for files and folders in encrypted libraries (#4621)

* offered 'share' for encrypted library in 'dir view' page
This commit is contained in:
llj
2020-07-21 11:16:33 +08:00
committed by GitHub
parent d93a55b32b
commit dccddea02f
6 changed files with 32 additions and 15 deletions

View File

@@ -63,8 +63,9 @@ class FileToolbar extends React.Component {
}
let showShareBtn = false;
if (!repoEncrypted &&
(filePerm == 'rw' || filePerm == 'r') && canGenerateShareLink) {
if (repoEncrypted) {
showShareBtn = true; // for internal link
} else if ((filePerm == 'rw' || filePerm == 'r') && canGenerateShareLink) {
showShareBtn = true;
}
@@ -212,7 +213,7 @@ class FileToolbar extends React.Component {
itemPath={filePath}
userPerm={filePerm}
repoID={repoID}
repoEncrypted={false}
repoEncrypted={repoEncrypted}
toggleDialog={this.toggleShareDialog}
/>
</ModalPortal>