1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 07:27:04 +00:00

Share link file upload (#4633)

* [share dialog] fixed permission bugs; added 'download and upload'
permission

* share link: fixed permission bug for library
* upload link: fixed permission bug
* share link: added 'download and upload' permission for folder

* [folder share link] added 'file upload' for folder share link with 'can_upload' permission
This commit is contained in:
llj
2020-10-20 16:24:58 +08:00
committed by GitHub
parent 25cee90eda
commit 7000c1f364
11 changed files with 1107 additions and 52 deletions

View File

@@ -83,8 +83,9 @@ class GenerateShareLink extends React.Component {
});
if (isPro) {
if (this.props.itemType === 'library') {
let permissionOptions = Utils.getShareLinkPermissionList(this.props.itemType, '', path);
const { itemType, userPerm } = this.props;
if (itemType == 'library') {
let permissionOptions = Utils.getShareLinkPermissionList(itemType, userPerm, path);
this.setState({
permissionOptions: permissionOptions,
currentPermission: permissionOptions[0],