Skip to content

Commit

Permalink
Register CanAccessOrder authorization policy
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarincev committed May 31, 2019
1 parent 4b98528 commit 4151c60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions VirtoCommerce.Storefront/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
});


Expand Down

0 comments on commit 4151c60

Please sign in to comment.