first commit
This commit is contained in:
12
Complex.EndPoint/Utility/ActionAttributes.cs
Normal file
12
Complex.EndPoint/Utility/ActionAttributes.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Microsoft.AspNetCore.Mvc.Filters;
|
||||
|
||||
namespace Complex.EndPoint.Utility
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Method)]
|
||||
public class CheckAccess: ActionFilterAttribute
|
||||
{
|
||||
public string AccessTitle { set; get; } = "";
|
||||
public bool AvailabilityByAccess { set; get; } = true;
|
||||
public bool Disabled { set; get; } = false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user