From 3340e869267777fbb466fe5c77d86540d8f0b711 Mon Sep 17 00:00:00 2001 From: "liuchun_0206@163.com" Date: Wed, 2 Nov 2016 16:37:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=88=E6=9D=83=E6=96=B9?= =?UTF-8?q?=E6=B3=95AuthenticateRole=E6=8E=A5=E5=8F=A3=EF=BC=8C=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/App_Start/BAAuthorizeAttribute.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Bootstrap.Admin/App_Start/BAAuthorizeAttribute.cs b/Bootstrap.Admin/App_Start/BAAuthorizeAttribute.cs index 0ca72d1a..53b417f0 100644 --- a/Bootstrap.Admin/App_Start/BAAuthorizeAttribute.cs +++ b/Bootstrap.Admin/App_Start/BAAuthorizeAttribute.cs @@ -1,7 +1,7 @@ -using Longbow.Security.Principal; -using Longbow.Web.Mvc; -using System; +using System; using System.Web.Mvc; +using Longbow.Security.Principal; +using Longbow.Web.Mvc; namespace Bootstrap.Admin { @@ -25,10 +25,10 @@ namespace Bootstrap.Admin /// /// /// - protected override bool AuthenticateRole(string userName) + protected override bool AuthenticateRole() { Roles = "Administrators;SupperAdmin"; //RoleHelper.RetrieveRolesByUrl(); - return base.AuthenticateRole(userName); + return base.AuthenticateRole(); } /// ///