Add additional null checks on GridPropertyEditor in case it's executed in the front end context without CurrentUser
This commit is contained in:
@@ -89,7 +89,7 @@ namespace Umbraco.Web.PropertyEditors
|
||||
|
||||
var grid = DeserializeGridValue(rawJson, out var rtes);
|
||||
|
||||
var userId = _umbracoContextAccessor.UmbracoContext?.Security.CurrentUser.Id ?? Constants.Security.SuperUserId;
|
||||
var userId = _umbracoContextAccessor.UmbracoContext?.Security?.CurrentUser?.Id ?? Constants.Security.SuperUserId;
|
||||
|
||||
//process the rte values
|
||||
foreach (var rte in rtes)
|
||||
|
||||
Reference in New Issue
Block a user