修改授权方法AuthenticateRole接口,去掉参数

This commit is contained in:
liuchun_0206@163.com 2016-11-02 16:37:02 +08:00
parent 1ac10ca9de
commit 3340e86926
1 changed files with 5 additions and 5 deletions

View File

@ -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
/// </summary>
/// <param name="userName"></param>
/// <returns></returns>
protected override bool AuthenticateRole(string userName)
protected override bool AuthenticateRole()
{
Roles = "Administrators;SupperAdmin"; //RoleHelper.RetrieveRolesByUrl();
return base.AuthenticateRole(userName);
return base.AuthenticateRole();
}
/// <summary>
///