From 4151c6021db8e57ad67032ee974b0390469f6e5c Mon Sep 17 00:00:00 2001 From: Eugeny Tatarincev Date: Fri, 31 May 2019 09:07:03 +0200 Subject: [PATCH] Register CanAccessOrder authorization policy --- VirtoCommerce.Storefront/Startup.cs | 2 ++ 1 file changed, 2 insertions(+) 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())); });