Merge pull request #2602 from ProNotion/issues/U4-8516

Fixes U4-8516 Copied node now sets the current user as the creator of the new node.
This commit is contained in:
Shannon Deminick
2018-04-30 15:25:07 +10:00
committed by GitHub

View File

@@ -835,7 +835,7 @@ namespace Umbraco.Web.Editors
{
var toCopy = ValidateMoveOrCopy(copy);
var c = Services.ContentService.Copy(toCopy, copy.ParentId, copy.RelateToOriginal, copy.Recursive);
var c = Services.ContentService.Copy(toCopy, copy.ParentId, copy.RelateToOriginal, copy.Recursive, Security.CurrentUser.Id);
var response = Request.CreateResponse(HttpStatusCode.OK);
response.Content = new StringContent(c.Path, Encoding.UTF8, "application/json");