Update src/Umbraco.Web/PropertyEditors/GridPropertyEditor.cs

Co-Authored-By: Bjarke Berg <mail@bergmania.dk>
This commit is contained in:
Warren Buckley
2019-09-16 09:33:42 +01:00
committed by GitHub
parent 63914aec4f
commit 14e33e0cb5

View File

@@ -99,7 +99,7 @@ namespace Umbraco.Web.PropertyEditors
// Parse the HTML
var html = rte.Value?.ToString();
var userId = _umbracoContextAccessor.UmbracoContext?.Security.CurrentUser.Id ?? -1;
var userId = _umbracoContextAccessor.UmbracoContext?.Security.CurrentUser.Id ?? Constants.Security.SuperUserId;
var parsedHtml = TemplateUtilities.FindAndPersistPastedTempImages(html, mediaParentId, userId, _mediaService, _contentTypeBaseServiceProvider, _logger);
rte.Value = parsedHtml;