|
@@ -551,7 +551,7 @@ class Authcompany extends \fast\Authpc
|
|
|
|
|
|
// 必须将结果集转换为数组
|
|
|
$ruleList = collection(\app\admin\model\PcAuthRule::where('status', 'normal')
|
|
|
- ->field('id,pid as parentId,name as namerule,title as name,path,component,component_name as componentName,icon')
|
|
|
+ ->field('id,pid as parentId,name as namerule,title as name,path,component,component_name as componentName,icon,status as visible')
|
|
|
->where('type', 'NEQ',3)
|
|
|
->order('weigh', 'desc')
|
|
|
->select())->toArray();
|
|
@@ -559,7 +559,6 @@ class Authcompany extends \fast\Authpc
|
|
|
foreach ($ruleList as $k => &$v) {
|
|
|
$v['alwaysShow'] = true;
|
|
|
$v['keepAlive'] = true;
|
|
|
- $v['visible'] = true;
|
|
|
|
|
|
if (!in_array($v['namerule'], $userRule)) {
|
|
|
unset($ruleList[$k]);
|