Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
newShopBack
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
newshop
newShopBack
Commits
3e2545f1
Commit
3e2545f1
authored
Dec 12, 2019
by
孙磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
角色权限节点信息优化
Signed-off-by:
sunlei
<
sunlei@romens.cn
>
parent
fc4fb56c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
AuthorityNodeController.php
backend/controllers/v1/authority/AuthorityNodeController.php
+3
-0
No files found.
backend/controllers/v1/authority/AuthorityNodeController.php
View file @
3e2545f1
...
@@ -356,6 +356,9 @@ class AuthorityNodeController extends BaseController
...
@@ -356,6 +356,9 @@ class AuthorityNodeController extends BaseController
$userinfo
=
$rbac
->
getRbacUserInfo
(
$userGuid
);
$userinfo
=
$rbac
->
getRbacUserInfo
(
$userGuid
);
$cur_role_id
=
$userinfo
[
'ROLE_ID'
];
$cur_role_id
=
$userinfo
[
'ROLE_ID'
];
$cur_auth_all
=
$roleAcessModel
->
getRoleAuthorities
(
$cur_role_id
);
$cur_auth_all
=
$roleAcessModel
->
getRoleAuthorities
(
$cur_role_id
);
if
(
!
$cur_auth_all
)
{
throw
new
BadRequestHttpException
(
'没有找到登陆用户的权限信息,请核查'
);
}
//获取登陆用户节点ID
//获取登陆用户节点ID
$cur_role_nodes
=
array
();
$cur_role_nodes
=
array
();
foreach
(
$cur_auth_all
as
$k
=>
$v
)
{
foreach
(
$cur_auth_all
as
$k
=>
$v
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment