rabin 1 year ago
parent
commit
97ea8ad8a3
1 changed files with 3 additions and 0 deletions
  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 . ',')) {
         if ($this->user['auth']['func'] && strstr($this->user['auth']['func'], ',' . $id . ',')) {
             return $id;
             return $id;
         }
         }
+        if (isset($this->menu) && $this->menu && $this->menu['show'] != 1) {
+            return $id;
+        }
         Dever::error('无操作权限');
         Dever::error('无操作权限');
     }
     }
 }
 }