From 549ab5e98f32c8b0bec2192f4977a732814ea676 Mon Sep 17 00:00:00 2001 From: zenggang Date: Thu, 10 Mar 2022 00:53:15 +0000 Subject: [PATCH] * Adjust code --- module/custom/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/custom/model.php b/module/custom/model.php index 10c3543c0f..15dc1f03d2 100644 --- a/module/custom/model.php +++ b/module/custom/model.php @@ -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; } }