fixes sections

This commit is contained in:
Shannon
2017-06-06 02:13:14 +02:00
parent 9bf61bb487
commit 174e336512

View File

@@ -227,7 +227,7 @@ namespace Umbraco.Web.Models.Mapping
private void MapUserGroupBasic(ServiceContext services, dynamic group, UserGroupBasic display)
{
var allSections = services.SectionService.GetSections();
display.Sections = allSections.Where(x => group.Alias == x.Alias).Select(Mapper.Map<ContentEditing.Section>);
display.Sections = allSections.Where(x => group.AllowedSections.Contains(x.Alias)).Select(Mapper.Map<ContentEditing.Section>);
if (group.StartMediaId > 0)
{
display.StartMediaId = Mapper.Map<EntityBasic>(