diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util.Operat/OperatorHelper.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util.Operat/OperatorHelper.cs index 52b21ea47..f2fdaa45a 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util.Operat/OperatorHelper.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util.Operat/OperatorHelper.cs @@ -324,6 +324,14 @@ namespace Learun.Util.Operat userInfo.Description = userEntity.F_Description; userInfo.roleIds = userRelationIBLL.GetObjectIds(userEntity.F_UserId, 1); + if (!string.IsNullOrEmpty(userInfo.roleIds)) + { + var rolelist = userRelationIBLL.GetRoleListByUserId(userEntity.F_UserId); + foreach (var roleEntity in rolelist) + { + userInfo.roleName += roleEntity.F_FullName+ ","; + } + } userInfo.postIds = userRelationIBLL.GetObjectIds(userEntity.F_UserId, 2); userInfo.companyIds = companyIBLL.GetSubNodes(userEntity.F_CompanyId); userInfo.departmentIds = departmentIBLL.GetSubNodes(userEntity.F_CompanyId, userEntity.F_DepartmentId);