数据导入 人员角色 添加默认角色
This commit is contained in:
parent
959ecc8480
commit
8fd772fa8c
@ -1409,11 +1409,12 @@ namespace APT.BS.WebApi.Controllers.Api
|
||||
if (listRole != null && listRole.Count > 0)
|
||||
{
|
||||
foreach (var item in listRole)
|
||||
{
|
||||
if (!isAddUser)
|
||||
{
|
||||
modelUserRole = listUserRole.FirstOrDefault(e => e.USER_ID == modelUser.ID && e.BELONG_ROLE_ID == item.ID);
|
||||
}
|
||||
{
|
||||
//if (!isAddUser)
|
||||
//{
|
||||
//导入用户 所有的角色都得判断
|
||||
modelUserRole = listUserRole.FirstOrDefault(e => e.USER_ID == modelUser.ID && e.BELONG_ROLE_ID == item.ID);
|
||||
//}
|
||||
|
||||
if (modelUserRole == null)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user