Update src/Umbraco.Web/Security/BackOfficeSignInManager.cs

Co-Authored-By: Ronald Barendse <ronald@barend.se>
This commit is contained in:
Kenn Jacobsen
2019-07-25 07:40:38 +02:00
committed by GitHub
parent 3031459b8a
commit f4d8f58505

View File

@@ -115,7 +115,7 @@ namespace Umbraco.Web.Security
// We need to verify that the user belongs to one or more groups that define content and media start nodes.
// To do so we have to create the user claims identity and validate the calculated start nodes.
var userIdentity = await CreateUserIdentityAsync(user);
if(userIdentity is UmbracoBackOfficeIdentity backOfficeIdentity)
if (userIdentity is UmbracoBackOfficeIdentity backOfficeIdentity)
{
if(backOfficeIdentity.StartContentNodes.Length == 0 || backOfficeIdentity.StartMediaNodes.Length == 0)
{