1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 08:53:14 +00:00

optimize code (#5300)

* optimize code

* update code

* optimize code
This commit is contained in:
杨顺强
2022-11-08 22:35:41 +08:00
committed by GitHub
parent c97947ea2a
commit 53e2e70d8c
5 changed files with 24 additions and 18 deletions

View File

@@ -332,11 +332,11 @@ class DirentListView extends React.Component {
if (this.props.selectedDirentList.length === 0) {
let id = 'dirent-container-menu';
// custom permission judgement
if (isCustomPermission) {
const { modify } = customPermission.permission;
if (!modify) return;
const { create: canCreate } = customPermission.permission;
if (!canCreate) return;
}
let menuList = [TextTranslation.NEW_FOLDER, TextTranslation.NEW_FILE];