Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-auth
Overview
Overview
Details
Activity
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
base_platform_enterprise
gic-platform-auth
Commits
6bdd8f10
Commit
6bdd8f10
authored
Nov 18, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限项操作修复
parent
b38171e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
MenuApiServiceImpl.java
...a/com/gic/auth/service/outer/impl/MenuApiServiceImpl.java
+8
-6
No files found.
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/MenuApiServiceImpl.java
View file @
6bdd8f10
...
@@ -960,12 +960,14 @@ public class MenuApiServiceImpl implements MenuApiService {
...
@@ -960,12 +960,14 @@ public class MenuApiServiceImpl implements MenuApiService {
//获取配置在权限项内的操作项数据
//获取配置在权限项内的操作项数据
List
<
MenuDTO
>
operationItemListOfAuthItem
=
getOperationItemOfAuthItem
();
List
<
MenuDTO
>
operationItemListOfAuthItem
=
getOperationItemOfAuthItem
();
//已配置的操作项需要权限控制
//已配置的操作项需要权限控制
for
(
MenuDTO
menuDTO
:
operationItemListOfAuthItem
)
{
if
(
CollectionUtils
.
isNotEmpty
(
operationItemListOfAuthItem
))
{
if
(!
operationItemMap
.
containsKey
(
menuDTO
.
getMenuId
())
||
StringUtils
.
isBlank
(
versionCode
)
for
(
MenuDTO
menuDTO
:
operationItemListOfAuthItem
)
{
||
!
menuDTO
.
getMenuVersion
().
contains
(
"_"
+
versionCode
+
"_"
))
{
if
(!
operationItemMap
.
containsKey
(
menuDTO
.
getMenuId
())
||
StringUtils
.
isBlank
(
versionCode
)
//如果不存在,或者操作项的版本不对
||
!
menuDTO
.
getMenuVersion
().
contains
(
"_"
+
versionCode
+
"_"
))
{
//则是没有权限的操作项
//如果不存在,或者操作项的版本不对
resultList
.
add
(
menuDTO
);
//则是没有权限的操作项
resultList
.
add
(
menuDTO
);
}
}
}
}
}
//仅超管可用
//仅超管可用
...
...
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