Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-usercenter
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7ad50edd
authored
Mar 29, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
admin放开部门
1 parent
a987944f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
src/main/java/cn/com/glsx/shield/modules/service/UserService.java
src/main/java/cn/com/glsx/shield/modules/service/UserService.java
View file @
7ad50ed
...
@@ -758,14 +758,13 @@ public class UserService {
...
@@ -758,14 +758,13 @@ public class UserService {
Set
<
Long
>
tenantIds
=
this
.
getRelationAuthTenantIds
(
user
.
getId
(),
roleList
.
get
(
0
).
getId
());
Set
<
Long
>
tenantIds
=
this
.
getRelationAuthTenantIds
(
user
.
getId
(),
roleList
.
get
(
0
).
getId
());
//可见根部门(租户)
//可见根部门(租户)
authUser
.
setVisibleTenantIds
(
tenantIds
);
authUser
.
setVisibleTenantIds
(
tenantIds
);
//超级管理员无需查询更详细的部门、用户等信息
if
(!
isSupperAdmin
)
{
//可见部门
//可见部门
Set
<
Long
>
deptIds
=
this
.
getRelationAuthDeptIds
(
user
.
getId
(),
roleList
.
get
(
0
).
getId
());
Set
<
Long
>
deptIds
=
this
.
getRelationAuthDeptIds
(
user
.
getId
(),
roleList
.
get
(
0
).
getId
());
//可见组织(部门)
//可见组织(部门)
authUser
.
setVisibleDeptIds
(
deptIds
);
authUser
.
setVisibleDeptIds
(
deptIds
);
//超级管理员无需查询更详细的部门、用户等信息
if
(!
isSupperAdmin
)
{
//可见用户
//可见用户
Set
<
Long
>
userIds
=
this
.
getRelationAuthUserIds
(
user
.
getId
(),
roleList
.
get
(
0
).
getId
());
Set
<
Long
>
userIds
=
this
.
getRelationAuthUserIds
(
user
.
getId
(),
roleList
.
get
(
0
).
getId
());
//可见用户
//可见用户
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment