初始化
This commit is contained in:
21
Face.Web/App_Start/Handler/HandlerAuthorizeAttribute.cs
Normal file
21
Face.Web/App_Start/Handler/HandlerAuthorizeAttribute.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Routing;
|
||||
|
||||
namespace Face.Web
|
||||
{
|
||||
public class HandlerAuthorizeAttribute : ActionFilterAttribute
|
||||
{
|
||||
public bool Ignore { get; set; }
|
||||
public HandlerAuthorizeAttribute(bool ignore = true)
|
||||
{
|
||||
Ignore = ignore;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user