mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-21 02:57:54 +08:00
更改PDM文件
删除为用户分配可见机构(本身有机构功能) 删除为角色分配机构(本身有机构多对多功能)
This commit is contained in:
@@ -130,8 +130,8 @@ namespace OpenAuth.Domain.Service
|
||||
//用户角色与自己分配到的机构ID
|
||||
var orgids = _unitWork.Find<Relevance>(
|
||||
u =>
|
||||
(u.FirstId == _user.Id && u.Key == "UserAccessedOrg") ||
|
||||
(u.Key == "RoleAccessedOrg" && userRoleIds.Contains(u.FirstId))).Select(u => u.SecondId);
|
||||
(u.FirstId == _user.Id && u.Key == "UserOrg") ||
|
||||
(u.Key == "RoleOrg" && userRoleIds.Contains(u.FirstId))).Select(u => u.SecondId);
|
||||
_orgs = _unitWork.Find<Org>(u => orgids.Contains(u.Id)).ToList();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user