Browse Source

Update Menu.php

Anyon 2 years ago
parent
commit
9cea3f66a2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/controller/Menu.php

+ 1 - 1
app/admin/controller/Menu.php

@@ -108,7 +108,7 @@ class Menu extends Controller
             /* 读取系统功能节点 */
             $this->auths = [];
             $this->nodes = MenuService::instance()->getList();
-            foreach (NodeService::instance()->getMethods() as $node => $item) {
+            foreach (NodeService::instance()->getMethods($this->app->isDebug()) as $node => $item) {
                 if ($item['isauth'] && substr_count($node, '/') >= 2) {
                     $this->auths[] = ['node' => $node, 'title' => $item['title']];
                 }