From 174e336512c70145d65c6bb08ebe645112a8f0b2 Mon Sep 17 00:00:00 2001 From: Shannon Date: Tue, 6 Jun 2017 02:13:14 +0200 Subject: [PATCH] fixes sections --- src/Umbraco.Web/Models/Mapping/UserModelMapper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web/Models/Mapping/UserModelMapper.cs b/src/Umbraco.Web/Models/Mapping/UserModelMapper.cs index 415ce28a27..f9f9859cdd 100644 --- a/src/Umbraco.Web/Models/Mapping/UserModelMapper.cs +++ b/src/Umbraco.Web/Models/Mapping/UserModelMapper.cs @@ -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); + display.Sections = allSections.Where(x => group.AllowedSections.Contains(x.Alias)).Select(Mapper.Map); if (group.StartMediaId > 0) { display.StartMediaId = Mapper.Map(