rabin 1 năm trước cách đây
mục cha
commit
97ea8ad8a3
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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('无操作权限');
     }
 }