/// <summary> /// 执行权限认证 /// </summary> /// <param name="filterContext"></param> /// <returns></returns> private bool ActionAuthorize(ActionExecutingContext filterContext) { string currentUrl = HttpContext.Current.Request.ServerVariables["SCRIPT_NAME"].ToString(); bool hasActionAuthorize = _authorizeBll.ActionAuthorize(SystemInfo.CurrentUserId, SystemInfo.CurrentModuleId, currentUrl); return(hasActionAuthorize); }
/// <summary> /// 执行权限认证 /// </summary> /// <param name="filterContext"></param> /// <returns></returns> private bool ActionAuthorize(ActionExecutingContext filterContext) { string currentUrl = HttpContext.Current.Request.ServerVariables["SCRIPT_NAME"].ToString(); string userId = OperatorProvider.Provider.Current().UserId; string currentModuleId = OperatorProvider.CurrentModuleId; return(authorizeBll.ActionAuthorize(userId, currentModuleId, currentUrl)); }