Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (13 sloc) 461 Bytes
using System.Collections.Generic;
using Microsoft.AspNetCore.Authorization;
namespace WebApplication.AspNetCore.Authorization
{
public class PermissionAuthorizationRequirement : IAuthorizationRequirement
{
public IEnumerable<Permission> RequiredPermissions { get; }
public PermissionAuthorizationRequirement(IEnumerable<Permission> requiredPermissions)
{
RequiredPermissions = requiredPermissions;
}
}
}