소스 검색

文档权限

2213980799@qq.com 1 년 전
부모
커밋
83922f18d7
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/components/addDoc/util.js

+ 2 - 2
src/components/addDoc/util.js

@@ -3,8 +3,8 @@ const userId = store.state.user.info.userId
 const userName = store.state.user.info.name
 export function isPower(data = {}, power, selection = []) {
 
-    if (power == 'download') {
-        console.log(!data?.id && selection.length == 0)
+    if (power == 'add'&&data.userAuthority.length==0) { //文件夹默认开放新增权限
+        return true
     }
     if (!data?.id && selection.length == 0) {
         return false