improvements for custom authorization policy usage
This commit is contained in:
@ -72,7 +72,7 @@ namespace Oqtane
|
||||
});
|
||||
}
|
||||
|
||||
// register authorization services
|
||||
// register custom authorization policies
|
||||
services.AddAuthorizationCore(options =>
|
||||
{
|
||||
options.AddPolicy("ViewPage", policy => policy.Requirements.Add(new PermissionRequirement(EntityNames.Page, PermissionNames.View)));
|
||||
|
Reference in New Issue
Block a user