Sfoglia il codice sorgente

放开所有权限

yusheng 1 anno fa
parent
commit
8c2845ac40
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  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;
   }