diff --git a/VirtoCommerce.Storefront/Startup.cs b/VirtoCommerce.Storefront/Startup.cs index 80c461024..4f177f34b 100644 --- a/VirtoCommerce.Storefront/Startup.cs +++ b/VirtoCommerce.Storefront/Startup.cs @@ -184,6 +184,8 @@ public void ConfigureServices(IServiceCollection services) policy => policy.Requirements.Add(new OnlyRegisteredUserAuthorizationRequirement())); options.AddPolicy(AnonymousUserForStoreAuthorizationRequirement.PolicyName, policy => policy.Requirements.Add(new AnonymousUserForStoreAuthorizationRequirement())); + options.AddPolicy(CanAccessOrderAuthorizationRequirement.PolicyName, + policy => policy.Requirements.Add(new CanAccessOrderAuthorizationRequirement())); });