Commit 99d1b667 authored by 孙磊's avatar 孙磊

角色权限节点优化

Signed-off-by: 孙磊's avatarsunlei <sunlei@romens.cn>
parent 3e2545f1
......@@ -380,8 +380,8 @@ class AuthorityNodeController extends BaseController
$info = $roleAcessModel->getRoleAuthorities($id);
if (!$info) {
// throw new BadRequestHttpException('没有找到角色的权限信息');
return $roleHasAuthInfo = '';
}
$roleHasAuthInfo = '';
} else {
//获取节点ID
$roleHasAuthID = array();
foreach ($info as $k => $v) {
......@@ -392,6 +392,7 @@ class AuthorityNodeController extends BaseController
} else {
$roleHasAuthInfo = '';
}
}
//拼装数组
$roleNodeInfo = array(
'cur_role_nodes' => $cur_role_authorities,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment