Commit 3e2545f1 authored by 孙磊's avatar 孙磊

角色权限节点信息优化

Signed-off-by: 孙磊's avatarsunlei <sunlei@romens.cn>
parent fc4fb56c
......@@ -356,6 +356,9 @@ class AuthorityNodeController extends BaseController
$userinfo = $rbac->getRbacUserInfo($userGuid);
$cur_role_id = $userinfo['ROLE_ID'];
$cur_auth_all = $roleAcessModel->getRoleAuthorities($cur_role_id);
if (!$cur_auth_all) {
throw new BadRequestHttpException('没有找到登陆用户的权限信息,请核查');
}
//获取登陆用户节点ID
$cur_role_nodes = array();
foreach ($cur_auth_all as $k => $v) {
......
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