UserId zero means null users, not super

This commit is contained in:
Stephan
2018-03-07 09:35:28 +01:00
parent e2ea849211
commit c9f868dd3c
2 changed files with 4 additions and 4 deletions

View File

@@ -47,9 +47,9 @@ namespace Umbraco.Core.Services
xml.Add(new XAttribute("nodeType", content.ContentType.Id));
xml.Add(new XAttribute("nodeTypeAlias", content.ContentType.Alias));
xml.Add(new XAttribute("creatorName", content.GetCreatorProfile(userService).Name));
xml.Add(new XAttribute("creatorName", content.GetCreatorProfile(userService)?.Name ?? "??"));
//xml.Add(new XAttribute("creatorID", content.CreatorId));
xml.Add(new XAttribute("writerName", content.GetWriterProfile(userService).Name));
xml.Add(new XAttribute("writerName", content.GetWriterProfile(userService)?.Name ?? "??"));
xml.Add(new XAttribute("writerID", content.WriterId));
xml.Add(new XAttribute("template", content.Template?.Id.ToString(CultureInfo.InvariantCulture) ?? "0"));

View File

@@ -325,8 +325,8 @@ namespace Umbraco.Examine
{"urlName", new object[] {urlValue}},
{"path", new object[] {c.Path}},
{"nodeType", new object[] {c.ContentType.Id}},
{"creatorName", new object[] {c.GetCreatorProfile(UserService).Name}},
{"writerName", new object[] {c.GetWriterProfile(UserService).Name}},
{"creatorName", new object[] {c.GetCreatorProfile(UserService)?.Name ?? "??"}},
{"writerName", new object[] {c.GetWriterProfile(UserService)?.Name ?? "??"}},
{"writerID", new object[] {c.WriterId}},
{"template", new object[] {c.Template?.Id ?? 0}}
};