1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 16:10:26 +00:00

Merge pull request #3322 from haiwen/dirent-menu-improve

repair cloud-edit&perview bug
This commit is contained in:
Daniel Pan
2019-04-18 17:37:34 +08:00
committed by GitHub
4 changed files with 91 additions and 64 deletions

View File

@@ -16,6 +16,7 @@ import ModalPortal from '../modal-portal';
const propTypes = {
path: PropTypes.string.isRequired,
userPerm: PropTypes.string.isRequired,
repoID: PropTypes.string.isRequired,
repoEncrypted: PropTypes.bool.isRequired,
selectedDirentList: PropTypes.array.isRequired,
@@ -232,8 +233,14 @@ class MutipleDirOperationToolbar extends React.Component {
}
render() {
const { repoID } = this.props;
const { repoID, userPerm } = this.props;
let direntPath = this.getDirentPath(this.props.selectedDirentList[0]);
if (userPerm !== 'rw' && userPerm !== 'admin') {
return '';
}
return (
<Fragment>
<div className="d-flex">