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

forbid new folder & new file in container for someone who not has permission

This commit is contained in:
shanshuirenjia
2019-06-24 11:28:25 +08:00
parent ba39bfe176
commit 01df690b19
7 changed files with 48 additions and 29 deletions

View File

@@ -20,8 +20,8 @@ const propTypes = {
repoID: PropTypes.string.isRequired,
repoPermission: PropTypes.bool.isRequired,
enableDirPrivateShare: PropTypes.bool.isRequired,
userPrem: PropTypes.bool,
isGroupOwnedRepo: PropTypes.bool.isRequired,
userPerm: PropTypes.string,
// path func
onTabNavClick: PropTypes.func.isRequired,
onMainNavBarClick: PropTypes.func.isRequired,
@@ -159,7 +159,7 @@ class LibContentContainer extends React.Component {
if (usedRepoTags.length !== 0 || readmeMarkdown !== null || draftCounts !== 0) {
isRepoInfoBarShow = true;
}
}
}
return (
<Fragment>
@@ -194,6 +194,7 @@ class LibContentContainer extends React.Component {
repoID={repoID}
currentRepoInfo={this.props.currentRepoInfo}
isGroupOwnedRepo={this.props.isGroupOwnedRepo}
userPerm={this.props.userPerm}
enableDirPrivateShare={this.props.enableDirPrivateShare}
isRepoInfoBarShow={isRepoInfoBarShow}
usedRepoTags={this.props.usedRepoTags}
@@ -232,6 +233,7 @@ class LibContentContainer extends React.Component {
currentRepoInfo={this.props.currentRepoInfo}
repoPermission={this.props.repoPermission}
isGroupOwnedRepo={this.props.isGroupOwnedRepo}
userPerm={this.props.userPerm}
enableDirPrivateShare={this.props.enableDirPrivateShare}
onRenameNode={this.props.onRenameNode}
isRepoInfoBarShow={isRepoInfoBarShow}
@@ -262,6 +264,7 @@ class LibContentContainer extends React.Component {
currentRepoInfo={this.props.currentRepoInfo}
repoPermission={this.props.repoPermission}
isGroupOwnedRepo={this.props.isGroupOwnedRepo}
userPerm={this.props.userPerm}
enableDirPrivateShare={this.props.enableDirPrivateShare}
isTreeDataLoading={this.props.isTreeDataLoading}
treeData={this.props.treeData}