1
0
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:
shanshuirenjia
2021-09-24 12:17:20 +08:00
parent 46fdbb282f
commit 911add8bec

View File

@@ -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';