Update src/Umbraco.Web/Security/BackOfficeSignInManager.cs
Co-Authored-By: Ronald Barendse <ronald@barend.se>
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user