rabin 1 년 전
부모
커밋
97ea8ad8a3
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      lib/Auth.php

+ 3 - 0
lib/Auth.php

@@ -147,6 +147,9 @@ class Auth
         if ($this->user['auth']['func'] && strstr($this->user['auth']['func'], ',' . $id . ',')) {
             return $id;
         }
+        if (isset($this->menu) && $this->menu && $this->menu['show'] != 1) {
+            return $id;
+        }
         Dever::error('无操作权限');
     }
 }