yavsc/Yavsc/Models/Access/Rule.cs

10 lines
281 B
C#
Raw Normal View History

2016-05-17 18:22:18 +02:00
using Microsoft.AspNet.Authorization;
namespace Yavsc.Models.Access
{
public abstract class Rule<TResource> where TResource : IAuthorizationRequirement
{
public virtual bool Mandatory { get; set; }
public abstract bool Allow(ApplicationUser user);
}
}