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('无操作权限');
     }
 }