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

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

View File

@@ -117,7 +117,7 @@ namespace Umbraco.Web.PropertyEditors
var editorValueWithMediaUrlsRemoved = TemplateUtilities.RemoveMediaUrlsFromTextString(editorValue.Value.ToString());
var parsed = MacroTagParser.FormatRichTextContentForPersistence(editorValueWithMediaUrlsRemoved);
var userId = _umbracoContextAccessor.UmbracoContext?.Security.CurrentUser.Id ?? -1;
var userId = _umbracoContextAccessor.UmbracoContext?.Security.CurrentUser.Id ?? Constants.Security.SuperUserId;
var config = editorValue.DataTypeConfiguration as RichTextConfiguration;
var mediaParent = config?.MediaParentId;