We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2507da4 commit 7fe80d4Copy full SHA for 7fe80d4
Admin.Core.Services/Admin/Auth/AuthService.cs
@@ -121,7 +121,8 @@ public async Task<IResponseOutput> GetUserInfoAsync()
121
.Where(a => new[] { PermissionType.Group, PermissionType.Menu }.Contains(a.Type))
122
.Where(a =>
123
_rolePermissionRepository.Select
124
- .InnerJoin<UserRoleEntity>((b, c) => b.RoleId == c.RoleId && b.PermissionId == a.Id && c.UserId == _user.Id)
+ .InnerJoin<UserRoleEntity>((b, c) => b.RoleId == c.RoleId && c.UserId == _user.Id)
125
+ .Where(b => b.PermissionId == a.Id)
126
.Any()
127
)
128
.OrderBy(a => a.ParentId)
0 commit comments