소스 검색

放开所有权限

yusheng 1 년 전
부모
커밋
8c2845ac40
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/views/doc/util.js

+ 1 - 2
src/views/doc/util.js

@@ -12,8 +12,7 @@ export function isPower(data = {}, power, selection = []) {
   }
   if (
     //文件查看浏览权限
-    vue.prototype.$hasPermission('fm:doc:viewAll') &&
-    ['check', 'browse'].includes(power)
+    vue.prototype.$hasPermission('fm:doc:viewAll')
   ) {
     return true;
   }