rabin 5 年之前
父节点
当前提交
2b972526b9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Menu.php

+ 1 - 1
src/Menu.php

@@ -188,7 +188,7 @@ class Menu
     {
     {
         if (isset($child[$v['id']])) {
         if (isset($child[$v['id']])) {
             foreach ($child[$v['id']] as $i => $j) {
             foreach ($child[$v['id']] as $i => $j) {
-                if ($auth && $i && strpos($auth . '.', $i . '.') === false) {
+                if ($auth && $i && strpos($auth . '.', $i) === false) {
                     //unset($child[$parent][$i]);
                     //unset($child[$parent][$i]);
                     //continue;
                     //continue;
                 } else {
                 } else {