CRM Module fixes
This commit is contained in:
parent
18cd090671
commit
6738c1611a
10 changed files with 46 additions and 11 deletions
|
@ -1520,6 +1520,8 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
return res;
|
||||
}
|
||||
|
||||
static string excludedRolesStr = ";пользователь поддержки;support user;";
|
||||
|
||||
private static List<CrmRole> FillCrmRoles(EntityCollection entities, bool isUserRole, Guid businessUnitId)
|
||||
{
|
||||
List<CrmRole> res = new List<CrmRole>();
|
||||
|
@ -1536,10 +1538,16 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
continue;
|
||||
}
|
||||
|
||||
string roleName = role.Name;
|
||||
|
||||
if (roleName!=null)
|
||||
if (excludedRolesStr.IndexOf(";" + roleName.ToLower() + ";") != -1)
|
||||
continue;
|
||||
|
||||
CrmRole crmRole = new CrmRole();
|
||||
crmRole.IsCurrentUserRole = isUserRole;
|
||||
crmRole.RoleId = (Guid)role.RoleId;
|
||||
crmRole.RoleName = role.Name;
|
||||
crmRole.RoleName = roleName;
|
||||
|
||||
res.Add(crmRole);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue