22 lines
570 B
C#
22 lines
570 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
|
|
using NP.Model;
|
|
using NP.Base.Auth;
|
|
namespace NP.FO.Controllers
|
|
{
|
|
public class FOAuthBaseController : FOBaseController
|
|
{
|
|
protected override void OnActionExecuting(ActionExecutingContext filterContext)
|
|
{
|
|
base.OnActionExecuting(filterContext);
|
|
if (SUserInfo.UserNo < 1)
|
|
{
|
|
filterContext.Result = new RedirectResult("/Account/Index");
|
|
}
|
|
}
|
|
}
|
|
} |