diff --git a/src/Umbraco.Web/Editors/ContentController.cs b/src/Umbraco.Web/Editors/ContentController.cs index 5c8e4b9497..ab72649fcf 100644 --- a/src/Umbraco.Web/Editors/ContentController.cs +++ b/src/Umbraco.Web/Editors/ContentController.cs @@ -558,8 +558,8 @@ namespace Umbraco.Web.Editors if (foundContent == null) HandleContentNotFound(id); - - Services.ContentService.UnPublish(foundContent); + + Services.ContentService.UnPublish(foundContent, Security.CurrentUser.Id); var content = Mapper.Map(foundContent); content.AddSuccessNotification(Services.TextService.Localize("content/unPublish"), Services.TextService.Localize("speechBubbles/contentUnpublished")); diff --git a/src/Umbraco.Web/Editors/MediaController.cs b/src/Umbraco.Web/Editors/MediaController.cs index c34170ccda..1eb68c88a9 100644 --- a/src/Umbraco.Web/Editors/MediaController.cs +++ b/src/Umbraco.Web/Editors/MediaController.cs @@ -349,7 +349,7 @@ namespace Umbraco.Web.Editors { var mediaService = ApplicationContext.Services.MediaService; var f = mediaService.CreateMedia(folder.Name, folder.ParentId, Constants.Conventions.MediaTypes.Folder); - mediaService.Save(f); + mediaService.Save(f, Security.CurrentUser.Id); return Mapper.Map(f); } @@ -416,7 +416,7 @@ namespace Umbraco.Web.Editors mediaType = Constants.Conventions.MediaTypes.Image; var mediaService = ApplicationContext.Services.MediaService; - var f = mediaService.CreateMedia(fileName, parentId, mediaType); + var f = mediaService.CreateMedia(fileName, parentId, mediaType, Security.CurrentUser.Id); var fileInfo = new FileInfo(file.LocalFileName); var fs = fileInfo.OpenReadWithRetry(); @@ -426,7 +426,7 @@ namespace Umbraco.Web.Editors f.SetValue(Constants.Conventions.Media.File, fileName, fs); } - mediaService.Save(f); + mediaService.Save(f, Security.CurrentUser.Id); } else {