fixes user query relator

This commit is contained in:
Shannon
2017-05-16 16:09:01 +10:00
parent ffd63a9103
commit 26b8236eea

View File

@@ -62,13 +62,17 @@ namespace Umbraco.Core.Persistence.Relators
//add the current (new) group
_currentUser.UserGroupDtos.Add(group);
}
AddSection(section);
}
}
private void AddSection(UserGroup2AppDto section)
{
//this can be null since we are left joining
if (section == null || section.AppAlias.IsNullOrWhiteSpace())
return;
var latestGroup = _currentUser.UserGroupDtos.Count > 0
? _currentUser.UserGroupDtos[_currentUser.UserGroupDtos.Count - 1]
: null;