* Adjust code

This commit is contained in:
zenggang
2022-03-10 00:53:15 +00:00
parent 41e2e45e8a
commit 549ab5e98f
+2 -2
View File
@@ -244,7 +244,7 @@ class customModel extends model
$link = explode('|', $link);
list($label, $module, $method) = $link;
$hasPriv = commonModel::hasPriv($module, $method);
/* Fix bug#20464 */
/* Fix bug #20464 */
if(!$hasPriv and is_array($item) and isset($item['subMenu']))
{
foreach($item['subMenu'] as $subMenu)
@@ -252,7 +252,7 @@ class customModel extends model
if(!isset($subMenu['link'])) continue;
list($subLabel, $module, $method) = explode('|', $subMenu['link']);
$hasPriv = commonModel::hasPriv($module, $method);
if($hasPriv == true) break;
if($hasPriv) break;
}
}