Anyon 2 rokov pred
rodič
commit
9cea3f66a2
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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']];
                 }