deny custom role
Posted
by kusanagi
on Stack Overflow
See other posts from Stack Overflow
or by kusanagi
Published on 2010-04-21T11:47:07Z
Indexed on
2010/04/21
11:53 UTC
Read the original article
Hit count: 388
how can i deny access to call method. something like this
[HandleError]
[Authorize(Roles = "role1, role2")]
public class AdminController : Controller
{
[Deny(Roles = "role2")]
public ActionResult ResultPage(string message)
{
ViewData["message"] = message;
return View();
}
}
© Stack Overflow or respective owner