mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-08 18:30:53 +00:00
repair code bug
This commit is contained in:
@@ -159,7 +159,9 @@ class MoveDirent extends React.Component {
|
|||||||
title = gettext('Move selected item(s) to:');
|
title = gettext('Move selected item(s) to:');
|
||||||
}
|
}
|
||||||
let mode = this.props.repoEncrypted ? 'only_current_library':'current_repo_and_other_repos';
|
let mode = this.props.repoEncrypted ? 'only_current_library':'current_repo_and_other_repos';
|
||||||
const { permission } = this.props.dirent;
|
const { dirent, selectedDirentList } = this.props;
|
||||||
|
const movedDirent = dirent ? dirent : selectedDirentList[0];
|
||||||
|
const { permission } = movedDirent;
|
||||||
const { isCustomPermission } = Utils.getUserPermission(permission);
|
const { isCustomPermission } = Utils.getUserPermission(permission);
|
||||||
if (isCustomPermission) {
|
if (isCustomPermission) {
|
||||||
mode = 'only_current_library';
|
mode = 'only_current_library';
|
||||||
|
Reference in New Issue
Block a user