Skip to content

Commit 7fe80d4

Browse files
committed
优化
1 parent 2507da4 commit 7fe80d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Admin.Core.Services/Admin/Auth/AuthService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ public async Task<IResponseOutput> GetUserInfoAsync()
121121
.Where(a => new[] { PermissionType.Group, PermissionType.Menu }.Contains(a.Type))
122122
.Where(a =>
123123
_rolePermissionRepository.Select
124-
.InnerJoin<UserRoleEntity>((b, c) => b.RoleId == c.RoleId && b.PermissionId == a.Id && c.UserId == _user.Id)
124+
.InnerJoin<UserRoleEntity>((b, c) => b.RoleId == c.RoleId && c.UserId == _user.Id)
125+
.Where(b => b.PermissionId == a.Id)
125126
.Any()
126127
)
127128
.OrderBy(a => a.ParentId)

0 commit comments

Comments
 (0)