using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Authorization;
namespace gehGassi.Web.Auth.Requirements
{
///
/// Requirement das auf Rolle(n) prüft
///
public class IsInRoleRequirement : IAuthorizationRequirement
{
public List Roles { get; set; }
///
/// Erstellt eine Isntanz
///
/// Benötigte Rollen
public IsInRoleRequirement(params string[] roles)
{
Roles = roles.ToList();
}
}
}