Fix build errors after merging

This commit is contained in:
Nikolaj Geisle
2022-04-22 12:37:20 +02:00
parent 70a75d8c9b
commit 83419a30ea
2 changed files with 3 additions and 3 deletions

View File

@@ -277,7 +277,7 @@ namespace Umbraco.Cms.Core.Models.Mapping
},
};
if (_backofficeSecurityAccessor.BackOfficeSecurity.CurrentUser.HasAccessToSensitiveData() is false)
if (_backofficeSecurityAccessor.BackOfficeSecurity?.CurrentUser?.HasAccessToSensitiveData() is false)
{
// Current user doesn't have access to sensitive data so explicitly set the views and remove the value from sensitive data
foreach (var property in properties)