8using System.Threading.Tasks;
9using Microsoft.AspNetCore.Authorization;
26 if (Rules.BusinessRules.HasPermission(requirement.
Action, requirement.
ObjectType))
27 context.Succeed(requirement);
30 return Task.CompletedTask;
CSLA permissions requirement.
Rules.AuthorizationActions Action
Gets or sets the authorization action
Type ObjectType
Gets or sets the business object type
Authorization handler for CSLA permissions.
override Task HandleRequirementAsync(AuthorizationHandlerContext context, CslaPermissionRequirement requirement)
Handle requirements