1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 23:48:47 +00:00

Merge pull request #3632 from haiwen/hide-download-link

Delete direct download link
This commit is contained in:
Daniel Pan
2019-06-11 09:51:02 +08:00
committed by GitHub

View File

@@ -307,7 +307,7 @@ class GenerateShareLink extends React.Component {
}
</dd>
</FormGroup>
{!sharedLinkInfo.is_dir && ( //just for file
{!sharedLinkInfo.is_dir && sharedLinkInfo.permissions.can_download &&( //just for file
<FormGroup className="mb-0">
<dt className="text-secondary font-weight-normal">{gettext('Direct Download Link:')}</dt>
<dd className="d-flex">