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:
@@ -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],
|
||||
|
Reference in New Issue
Block a user