인증 > 모듈
인증
아래 목록의 미리 정의 된 사용자 중 on을 사용하여이 응용 프로그램에 로그인 한 다음이 페이지로 돌아가서 CRM 모듈을 시뮬레이트하는 다음 타일을 클릭하여 로그에 부여 된 권한에 따라 액세스 권한이 있는지 여부를 확인하십시오 사용자 이름으로!
사용자 이름
사용자 이름 | 암호 | 역할 |
---|---|---|
admin@example.com | admin | Users, Roles and Groups |
alan.rose@example.com | user | CRM, Audit (Sales and Accounting Modules) |
catherine.bell@example.com | user | All Modules in CRM |
george.winter@example.com | user | CRM, Sales Module |
james.cruz@example.com | user | CRM, Support Module |
mark.davis@example.com | user | CRM, Marketing Module |
philip.gonzalez@example.com | user | CRM, Accounting Module |
william.lake@example.com | user | CRM, Operations Module |
조직 구조!

구현
namespace CRM.Web.Controllers
{
[LocalizedAuthorize(Roles = "CRM")]
public class AuthorizationTestController : BaseController
{
#region Public Methods
// GET: AuthorizationTest
public ActionResult Index()
{
return View();
}
// GET: AuthorizationTest/Sales
[LocalizedAuthorize(Roles = "CEO,Audit,Sales")]
public ActionResult Sales()
{
return View();
}
// GET: AuthorizationTest/Marketing
[LocalizedAuthorize(Roles = "CEO,Marketing")]
public ActionResult Marketing()
{
return View();
}
// GET: AuthorizationTest/Accounting
[LocalizedAuthorize(Roles = "CEO,Audit,Accounting")]
public ActionResult Accounting()
{
return View();
}
// GET: AuthorizationTest/Operations
[LocalizedAuthorize(Roles = "CEO,Operations")]
public ActionResult Operations()
{
return View();
}
// GET: AuthorizationTest/Support
[LocalizedAuthorize(Roles = "CEO,Support")]
public ActionResult Support()
{
return View();
}
#endregion Public Methods
}
}