mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-05 17:02:47 +00:00
Merge pull request #3632 from haiwen/hide-download-link
Delete direct download link
This commit is contained in:
@@ -307,7 +307,7 @@ class GenerateShareLink extends React.Component {
|
|||||||
}
|
}
|
||||||
</dd>
|
</dd>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
{!sharedLinkInfo.is_dir && ( //just for file
|
{!sharedLinkInfo.is_dir && sharedLinkInfo.permissions.can_download &&( //just for file
|
||||||
<FormGroup className="mb-0">
|
<FormGroup className="mb-0">
|
||||||
<dt className="text-secondary font-weight-normal">{gettext('Direct Download Link:')}</dt>
|
<dt className="text-secondary font-weight-normal">{gettext('Direct Download Link:')}</dt>
|
||||||
<dd className="d-flex">
|
<dd className="d-flex">
|
||||||
|
Reference in New Issue
Block a user